- Subject: Re: Problema ArrayList
- From: Jack
- Data: Tue, 22 Jul 2008 08:31:12 +0200 (CEST)
- Newsgroups: it.comp.java
"toto" <
tomz814LEVAMI@yahoo.it> wrote in news:
g62du8$mmq$1@tdi.cu.mi.it:
> while(bbb) {
>
> String[] tmp = test;
>
> tmp[1] = "pippo"+i;
> tmp[2] = "pluto"+i;
>
> lista.add(tmp);
>
> i++;
>
> if(i == 4)
> bbb = false;
> }
> [/codice]
ma fare un:
do{
//...
}while(i != 4)
oppure un
for(i = 0;i<=4;i++){
//...
}
pareva brutto?
(giusto per evitare di usare bbb eh).
Ciao Jack
--
Eroi non si nasce, ti incastrano
- Jim Belushi