Browse - Programming Tips - How can I make a copy of an ArrayList ?

Date: 2016jun8
Language: Java
Keywords: duplicate, clone

Q.  How can I make a copy of an ArrayList ?

A.  The constructor can do it:

ArrayList<String> theClone = new ArrayList<String>(theOriginal);