I have some data structures, and I would like to use one as a temporary, and another as not temporary.
ArrayList myObject = new ArrayList
Supopose you want to copy oldList into a new ArrayList object called newList
ArrayList newList = new ArrayList<>() ; for (int i = 0 ; i
These two lists are indepedant, changes to one are not reflected to the other one.