import java.util.*;
public class Main {
public static <T> List<T> unionToArrayList(
final Collection<T> collection, final T... items) {
final ArrayList<T> result = new ArrayList<T>(collection.size()
+ items.length);/from w w w . ja va 2 s. c om/
result.addAll(collection);
Collections.addAll(result, items);
return result;
}
}