Hi
I am trying to copy the contents of an arraylist into another object. I tried initializing the new ArrayList object in the following ways
newArrList.addAll(oldArrList);
and
newArrList = new ArrayList(oldArrList);
But every time I make a change to one of the array lists, the value also changes in the other ArrayList.
Can someone please tell me how I can avoid this.
Thanks.