Tente isto:
public static void main(String[] args)
throws IOException{
try
{
InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); System.out.print("Informe seu texto\t"); String s = (String) br.readLine(); System.out.println("o texto informado foi: "+s.toUpperCase()); }catch(IOException ioEx){System.out.println(ioEx.toString());} } []´s
Antonio Manoel
|
- [java-list] Entrada de Usuário via console Christopher Palma Moura
- Re: [java-list] Entrada de Usu?rio via consol... Clayton Boneli
- Re: [java-list] Entrada de Usu?rio via consol... Roberto Faucz
- RES: [java-list] Entrada de Usu?rio via conso... Gaucho
- Antonio Manoel