Language: Java, Expertise: Intermediate: See how to easily clone a list, or create a new one, in Java.
Cloning a List in Java can be done as shown below:
List newArrayList = (ArrayList) oldArrayList.clone();
Or, even better, just create a new List:
List newStrs = new ArrayList(strs);