1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class EntradaSalida { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Escribir una palabra: "); try { String aux = br.readLine(); System.out.println("La palabra es: " + aux.toUpperCase()); } catch(IOException ex) { ex.printStackTrace(); } } } |