Amorim,
Segue uma classe pronta.Javabra�os, /** * ) Regis Melo * (( [EMAIL PROTECTED] * |''|-. [EMAIL PROTECTED] * |__|-' JUG Leader * JAVA * Ceara' Java User Group * http://www.cejug.org * */ *** Assine a lista de discussoes [EMAIL PROTECTED], para duvidas e perguntas tecnicas sobre java. *** Assine o Cafe' com tapioca (noticias e eventos) [EMAIL PROTECTED] -----Original Message----- From: Rodrigo Lopes [mailto:rlopes@;softexport.com.br] Sent: quarta-feira, 30 de outubro de 2002 11:56 To: [EMAIL PROTECTED] Subject: Re: [discussao] Java texto N�o � t�o simples como em C... Vc tem que criar um BuferedReader a partir do System.in para ler dados do teclado. []'s Rodrigo. import java.io.*; public class IOTest { public static void main( String[] args ) { try { BufferedReader reader = new BufferedReader( new InputStreamReader( System.in ) ); System.out.print( "Digite seu nome: " ); String line = reader.readLine(); System.out.println( "Seu nome � " + line ); } catch( IOException exc ) { exc.printStackTrace(); } } } ______________________________ Rodrigo de Oliveira Lopes Desenvolvedor - Softexport Inform�tica Bacharel em Computa��o SCPJ2 Fone/Fax: +55 85 4581947 [EMAIL PROTECTED] www.softexport.com.br ICQ# 9566846 ----- Original Message ----- From: "Roberto Amorim" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 30, 2002 10:33 AM Subject: [discussao] Java texto > Usando java em modo texto, qual o correspondente ao scanf, ou getch, do C? > []s > Roberto Amorim --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 24/10/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 24/10/2002
Keyboard.java
Description: Binary data
