R
ruds
hi,
I have 2 arraylists al1 and al2. I'm copying al1 to al2 i.e.
al2=al1;
if i'm removing some elements from al2, the same elements from al1 too
are removed.
why so?
How do i prevent it?
How to copy array list can i clone it?
I have 2 arraylists al1 and al2. I'm copying al1 to al2 i.e.
al2=al1;
if i'm removing some elements from al2, the same elements from al1 too
are removed.
why so?
How do i prevent it?
How to copy array list can i clone it?