But is it a deep copy? As when I replace the data in the first arrayList (array) then both the arrayLists change. (That or I have another error)
Type: Posts; User: Scotty
But is it a deep copy? As when I replace the data in the first arrayList (array) then both the arrayLists change. (That or I have another error)
Does:
array.add(data.get(y));
make a deep or shallow copy? I am trying to get an arrayList to collect data but iterating though an algorithm and then place that data into a new arrayList...