I have an ArrayList that I\'d like to return a copy of. ArrayList has a clone method which has the following signature:
ArrayList
This is the code I use for that:
ArrayList copy = new ArrayList (original.size()); Collections.copy(copy, original);
Hope is usefull for you