Para leer en JAVA caracteres desde teclado

Page 1

//PROGRAMA QUE LEE UN CARACTER //EN JAVA Y LO MUESTRA POR //CĂ“NSOLA package leertecladochar; public class Main { public Main() { } public static void main(String[] args) { try { char caracter = (char) System.in.read(); System.out.println("Introdujo " + caracter); } catch(Exception e) { e.printStackTrace(); } } }


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.