Article View: es.comp.lenguajes.java
Article #28092Leer enteros por teclado
From: Pedro D�az
Date: Fri, 12 Jun 1998 00:00
Date: Fri, 12 Jun 1998 00:00
31 lines
1445 bytes
1445 bytes
Este es un mensaje multipartes en formato MIME. --------------0CD84126B4C3D08CD83306A1 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hola a todos. Expongo mi problema: Quiero pedir por teclado un dato entero. Lo hago con Sistem.in.read() sobre una variable declarada como entera, pero si meto un cero, almacena un 48 (el c�digo ascii de la tecla). �C�mo puedo resolverlo? �usando un cast a int? Gracias por vuestra atenci�n. --------------0CD84126B4C3D08CD83306A1 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Tarjeta de Pedro D�az Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Pedro D�az n: D�az;Pedro email;internet: pete@idecnet.com x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------0CD84126B4C3D08CD83306A1--
Technical Details
Message-ID:
<358176A9.EB742B40@idecnet.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: 1116f3,98ee98fbc2cdb430,start X-Google-Attributes: gid1116f3,public From: "Pedro D�az" <pete@idecnet.com> Subject: Leer enteros por teclado Date: 1998/06/12 Message-ID: <358176A9.EB742B40@idecnet.com> X-Deja-AN: 362097450 Mime-Version: 1.0 Reply-To: pete@idecnet.com Content-Type: multipart/mixed; boundary="------------0CD84126B4C3D08CD83306A1" Organization: DANAPLAN Newsgroups: es.comp.lenguajes.java