Util.java Source code

Java tutorial

Introduction

Here is the source code for Util.java

Source

import java.util.Arrays;
import java.util.Collection;

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