I am trying to create a copy to an Array List of Array Lists, but when doing so the addresses of all the individual elements are staying the same.
copySorted = new ArrayList<ArrayList<String>>(origSorted);
I would expect to generate a copy of origSorted without references to the original, but instead whenever I make a change to copySorted, it ends up happening to origSorted as well. I also tried the .clone() function with the same results.