Search:

Type: Posts; User: Scotty

Search: Search took 0.09 seconds.

  1. Replies
    3
    Views
    3,983

    Re: Deep copy of ArrayList?

    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)
  2. Replies
    3
    Views
    3,983

    Deep copy of ArrayList?

    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...
Results 1 to 2 of 2