Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.java > #8545

Re: del ed errore

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail
From "Dr.UgoGagliardelli" <do.not.spam@me.please>
Newsgroups it.comp.java
Subject Re: del ed errore
Date Sat, 26 Sep 2015 09:09:30 +0200
Organization Aioe.org NNTP Server
Lines 16
Message-ID <mu5gb6$a8g$1@speranza.aioe.org> (permalink)
References <mu3d0c$qn2$1@speranza.aioe.org>
NNTP-Posting-Host ZN4Y0FtGzpswkIA6IiUshw.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding 8bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com it.comp.java:8545

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar


Thread

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