import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Consola {
public static void main(String [] args) throws IOException
{
InputStreamReader fluj = new InputStreamReader(System.in);
BufferedReader teclado = new BufferedReader(fluj);
System.out.println("ingrese un numero: ");
String num = teclado.readLine();
int n = Integer.parseInt(num);
System.out.println("usted ingresó: "+n);
}
}
No hay comentarios:
Publicar un comentario