I have some data structures, and I would like to use one as a temporary, and another as not temporary.
ArrayList
You can use such trick:
myObject = new ArrayList
or use
myObject = (ArrayList
You can get some information about clone() method here
But you should remember, that all these ways will give you a copy of your List, not all of its elements. So if you change one of the elements in your copied List, it will also be changed in your original List.