I have an ArrayList that I\'d like to return a copy of. ArrayList has a clone method which has the following signature:
ArrayList
Why would you want to clone? Creating a new list usually makes more sense.
List strs; ... List newStrs = new ArrayList<>(strs);
Job done.