SyntaxFix
Write A Post
Hire A Developer
Questions
Here is a solution using a generic template type:
public static <T> List<T> copyList(List<T> source) { List<T> dest = new ArrayList<T>(); for (T item : source) { dest.add(item); } return dest; }