Re: pass-vy-value problem

2001-09-26 Thread Joi Ellis
On Wed, 26 Sep 2001, Pedro José Gil Villar wrote: > // Print the data from the ArrayList > for (i = 0; i<10; i++) { > c.al.add(i,c.d); Delete this line. > System.out.println("End: " + ((Double) c.al.get(i)).toString()); > } >} >

pass-vy-value problem

2001-09-26 Thread Pedro José Gil Villar
I've got a problem, probably an easy one, but i can't manage to solve it :-( I try to fill an ArrayList and then print it, but since Java pass only handles to object, he just keep the last value for every item in the ArrayList. I've read something about clone, but i can't make it