🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #29791

No me creereis

#29791
From: Dani Rodriguez
Date: Fri, 24 Oct 1997 00:00
26 lines
1508 bytes


-- 

        No me vais a creer....no puedo leer un entero del teclado.
        
        Esto es lo que yo hago:
                
                int a,b;
                a=System.in.read();
                // por ahora funciona
                // pero al acceder a una matriz asi:
                b=Matriz[a];
                // me da un error de rebosamiento del tamanio de la
                // matriz,diciendo que el indice es 49 (para i=1)
         Necesito un ejemplo claro de lectura de un numero
         y escritura del mismo, aunque use un DataInputStream


                              ############################################
                              #  Daniel Rodriguez Millan                 #
                              #  rodrigua@cs.us.es                       #
                              #  Facultad de Informatica y Estadistica   #
                              #  Sevilla , Espa#a                        #
                              ############################################
Technical Details
Message-ID: <62q4br$9mj$1@erika.cica.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: 1116f3,51542217ac7971ec,start
X-Google-Attributes: gid1116f3,public
From: Dani Rodriguez <rodrigua@cs.us.es>
Subject: No me creereis
Date: 1997/10/24
Message-ID: <62q4br$9mj$1@erika.cica.es>
X-Deja-AN: 284693883
Sender: Dani Rodriguez <rodrigua@galileo.fie.us.es>
X-Forwarded: by - (DeleGate/4.0.7)
Organization: Centro Informatico Cientifico de Andalucia
Newsgroups: es.comp.lenguajes.java