SyntaxFix
Write A Post
Hire A Developer
Questions
Cloning the objects before adding them. For example, instead of newList.addAll(oldList);
newList.addAll(oldList);
for(Person p : oldList) { newList.add(p.clone()); }
Assuming clone is correctly overriden inPerson.
clone
Person