$30 off During Our Annual Pro Sale. View Details »

Clase 1: Introducción del curso y conceptos básicos

Clase 1: Introducción del curso y conceptos básicos

Wilfredo Nieves

February 24, 2017
Tweet

More Decks by Wilfredo Nieves

Other Decks in Education

Transcript

  1. None
  2. None
  3. None
  4. http://developer.android.com https://github.com/wnieves19 https://speakerdeck.com/wnieves19)

  5. None
  6. None
  7. None
  8. None
  9. www.stackoverflow.com)

  10. None
  11. None
  12. None
  13. None
  14. None
  15. None
  16. public class Dog { }

  17. public class Dog { void play(){ } void bark(){ }

    }
  18. public class Dog { void play(){ statement1; } void bark(){

    statement1; statement2; } }
  19. public class MyClass { public static void main(String[] args){ }

    }
  20. None
  21. None
  22. public class MyClass { public static void main(String[] args){ int

    x= 3; x = x * 5; System.out.println(”The value of x = ” + x); //this is a comment } }
  23. None
  24. None
  25. None
  26. None
  27. public class Dog { public String play(){ String sentences= “This

    is a sentence”; return sentence; } }
  28. public class Car{ public void moveForward(int speed){ System.out.println(“The car accelerate

    to ”+ speed); } }
  29. public static void main(String[] args){ System.out.println("Bienvenidos al programa de suma

    simple"); System.out.println("Si entras dos números los sumare por ti"); Scanner reader = new Scanner(System.in); System.out.println("Entra un numero: "); int n = reader.nextInt(); System.out.println("Entra otro numero"); int y = reader.nextInt(); int total = n + y; System.out.println("La suma de ambos numero es "+ total); }
  30. public class MyClass { public static void main(String[] args){ //for

    loop for (int i = 0; i<10; i++){ System.out.println(i+""); } //while loop int i = 0; while(i< 12){ System.out.println(i+""); i++; } } }
  31. public class MyClass { public static void main(String[] args){ int

    x = 8; if(x > 10){ System.out.println("x is greater than 10"); }else{ System.out.println("x is less than 10"); } } }
  32. None
  33. public class MyClass { public static void main(String[] args){ int

    x = 13; if(x > 10 && x < 20){ System.out.println("x is between 10 and 20"); } }
  34. Vehicle speed color make moveForward() stop() steer() Campos de Instancia

    Comportamiento
  35. Vehicle speed color make moveForward() stop() steer() Car Motorcycle Bicycle

    Superclase Subclases
  36. Vehicle speed color make moveForward() stop() steer() Car Motorcycle Bicycle

    Drone fly() //codigo especifico //de drones land()
  37. Song artist album setArtist() setAlbum() play() Sabe Hace

  38. public class MyClass { public static void main(String[] args){ Song

    song = new Song(); song.play(); } }
  39. None
  40. public class Vehicle { private int speed; private String color;

    private String make; public void moveForward(){ System.out.println("Vehicle moving forward"); } public void stop(){ System.out.println("Vehicle is stopping"); } public void steer(){ System.out.println("Vehicle is steering"); } }
  41. public class Car extends Vehicle { int wheelSize = 16;

    public void openTrunk(){ //Opening trunk code } }
  42. public class MyClass { public static void main(String[] args){ Car

    car = new Car(); car.moveForward(); } }
  43. None