Login
...or Sign up
Home
Search
Search Code Snippets
Search People
Interfaz_teclado_pantalla
//Lectura de un texto por teclado //y presentacion del texto por pantallla import java.io.*; public class interfaz_teclado_pantalla { public static void main(String [] args) { //leer por teclado un string try{ InputStreamReader leer = new InputStreamReader(System.in); BufferedReader buff = new BufferedReader(leer); System.out.print("Escriba el texto: "); String texto = buff.readLine(); //salida por pantalla del texto introducido System.out.println(texto); } //leer del teclado como String catch(java.io.IOException ioex) {} } }
Lectura por teclado de un texto que se almacena en una variable tipo string
y luego se presenta por pantalla
Score: 0/10
Would you like to comment?
Sign up
for a free account or
sign in
(if you are already a member).
URL:
Embed:
Uploaded on 4/9/2009 3:23:45 PM
by
josino
Programming Language:
java
Tags:
lectura desde teclado;
Viewed 241 times
Help
Help by email
What is Naslu?
|
About Naslu
|
Contact
|
Terms of Use
|
Downloads
|
Webprogramacion.com
|
Blog
|
Top
Links
Select language:
Español
|
English
© 2009 naslu.com