What do you want to save?
Add Code snippet
New code examples
-
Java 2021-11-06 13:42:12
copy arraylist to another arraylist java
You can use such trick: myObject = new ArrayList<Object>(myTempObject); or use myObject = (ArrayList<Object>)myTempObject.clone(); You can get some information about clone() method here But you should remember, that all these ways will give... Add solution