import java.io.*; class Hola { public static void main( String args[] ) { String nombre = ""; System.out.print( "Introduzca su nombre: " ); try { BufferedReader entrada = new BufferedReader(new InputStreamReader(System.in)); nombre = entrada.readLine(); } catch (IOException e) {} System.out.println( "Hola, " + nombre ); } }