Download Lectura por teclado

Document related concepts
no text concepts found
Transcript
Lectura por teclado
Este programa se encarga de pedir el ingreso de un número, para luego mostrarlo
en pantalla.
/* 1) */
/* 2) */
/* 3) */
/* 4) */
/* 5) */
import java.io.*;
public class LectTeclado
{
public static void main(String Arg[ ]) throws IOException
{
/* 6) */
BufferedReader in = new BufferedReader(new
InputStreamReader(System.in));
/* 7) */
int num;
/* 8) */
System.out.print("Ingrese numero : ");
/* 9) */
num = Integer.parseInt(in.readLine( ));
/* 10) */
System.out.println("Ud ingreso el numero : " + num );
/* 11) */
}
/* 12) */ }
Related documents