Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | "Dr.UgoGagliardelli" <do.not.spam@me.please> |
|---|---|
| Newsgroups | it.comp.java |
| Subject | Re: del ed errore |
| Date | 2015-09-26 09:09 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <mu5gb6$a8g$1@speranza.aioe.org> (permalink) |
| References | <mu3d0c$qn2$1@speranza.aioe.org> |
Il 25.09.2015 13.57, Gulp® ha scritto: > Dopo la cancellazione di una riga di dati, mi compare: > > java.lang.ArrayIndexOutOfBoundsException: -1 > > Indica che ho problemi col puntatore? > Definisci 'riga di dati'. se 'riga di dati' e' un byte[], l'errore indica che hai usato un indice fuori dal range 0-(array.lenght-1), ovvero: for(int index = 0; index <= array.lenght; index++) e' sbagliato, la versione corretta e': for(int index = 0; index < array.lenght; index++) Ti segnalo i molti metodi statici della classe Arrays, ad esempio: Arrays.fill(array, (byte)' '); che fa la stessa cosa del for di cui sopra. Guardati il javaDoc.
Back to it.comp.java | Previous | Next — Previous in thread | Next in thread | Find similar
del ed errore Gulp® <gulp@hotmail.it> - 2015-09-25 13:57 +0200
Re: del ed errore 4ndre4 <a.laforgia@gmail.com> - 2015-09-25 05:39 -0700
Re: del ed errore Gulp® <gulp@hotmail.it> - 2015-09-26 09:36 +0200
Re: del ed errore rootkit <rootkit@email.it> - 2015-09-26 00:56 -0700
Re: del ed errore Gulp® <gulp@hotmail.it> - 2015-09-26 12:57 +0200
Re: del ed errore rootkit <rootkit@email.it> - 2015-09-26 04:15 -0700
Re: del ed errore Gulp® <gulp@hotmail.it> - 2015-09-26 13:31 +0200
Re: del ed errore 4ndre4 <a.laforgia@gmail.com> - 2015-09-27 01:47 -0700
Re: del ed errore "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-09-26 09:09 +0200
Re: del ed errore Gulp® <gulp@hotmail.it> - 2015-09-26 09:48 +0200
Re: del ed errore "Nando" <geremia@tim.it> - 2015-09-26 11:33 +0200
Re: del ed errore Gulp® <gulp@hotmail.it> - 2015-09-26 13:42 +0200
Re: del ed errore 4ndre4 <a.laforgia@gmail.com> - 2015-09-27 01:50 -0700
Re: del ed errore Gulp® <gulp@hotmail.it> - 2015-09-28 15:11 +0200
Re: del ed errore "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-09-27 13:05 +0200
Re: del ed errore 4ndre4 <a.laforgia@gmail.com> - 2015-09-27 01:48 -0700
csiph-web