How about this:
new ArrayList<T>(set);
For Java 7 and later, this can be simplified, as type arguments <T> can be replaced with diamond type <>:
new ArrayList<>(set);
How about this:
new ArrayList<T>(set);
For Java 7 and later, this can be simplified, as type arguments <T> can be replaced with diamond type <>:
new ArrayList<>(set);