A
Arjen
Hi,
I have an arraylist.
I copy the objects in this arraylist to a second arraylist.
When I edit the objects in the second arraylist then the objects in the
first arraylist are changed too.
I don't want this!!!
I tried to work with arraylist.clone() but this seems not make any
difference.
I am adding my objects now with arraylist2.add(object from arraylist one).
After that I read the arraylist2 object and change it. And then arraylist
one is changed too... how can I stop this?
Are there options?
Thanks,
Arjen
I have an arraylist.
I copy the objects in this arraylist to a second arraylist.
When I edit the objects in the second arraylist then the objects in the
first arraylist are changed too.
I don't want this!!!
I tried to work with arraylist.clone() but this seems not make any
difference.
I am adding my objects now with arraylist2.add(object from arraylist one).
After that I read the arraylist2 object and change it. And then arraylist
one is changed too... how can I stop this?
Are there options?
Thanks,
Arjen