Cloning the objects before adding them. For example, instead of newList.addAll(oldList); for(Person p : oldList) { newList.add(p.clone()); }.
確定! 回上一頁