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); }
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"); } }