This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
I am turkish and my variable names are turkish. i hope it won't be a problem.
here is the code:
as you can see there is an arraylist of arraylists of "cumlekelimesi" objects.
i fill the arraylist of arraylist with a templist: "geciciListe". i reconstruct the geciciListe with "new ArrayList<CumleKelimesi>()" at every step.
i can see that lists are filled with the values i wanted, all of them are different.
but when i try to manipulate the arraylists in te arraylist one by one, all the arraylists are effected.
How can you tell they're all affected? Are you testing after the while loop? If so, isn't it logical all the elements would be affected, since you call the method on each of them in the loop?
I would also highly recommend switching to English identifiers. You should always write your code so that other people can understand it, and getting help is a *lot* easier if you use English.
I don't mean to be uppity or anything; I used to write all my identifiers in Dutch. But switching to English will make life a lot more easy for you too.
Joined: Oct 07, 2009
yes i am debugging and testing after each iteration of the loops.
and arraylists in the arraylist of arraylists are affected even they are the list in the loop in that iteration or not.