I have an ArrayList that I\'d like to return a copy of. ArrayList has a clone method which has the following signature:
ArrayList
I find using addAll works fine.
ArrayList copy = new ArrayList(); copy.addAll(original);
parentheses are used rather than the generics syntax