import java.util.Arrays;import java.util.Collection;public class Util{ public static void addArrayToCollection(T[] array, Collection collection) { collection.addAll(Arrays.asList(array)); }}