Revision: 66727
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 25, 2014 05:23 by DANI14
Initial Code
package demo1; import java.util.Scanner; public class Screen2 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("Escriba su nombre: "); String nom = scanner.next(); System.out.print("Escriba su edad: "); int edad = scanner.nextInt(); System.out.print("Escriba su altura en m: "); double altura = scanner.nextDouble(); System.out.println("Su nombre es: " + nom); System.out.println("Su edad es: " + edad); System.out.println("Su altura es de: " + altura + "m"); } }
Initial URL
Initial Description
I need some help, i can't understand Why i can´t use it, it said me:`scanner` is never closed. Thanks
Initial Title
Basic Program I need help
Initial Tags
Initial Language
Java