public static <T> List<T> arrayToList(T [] array) {
        return new ArrayList<T>(Arrays.asList(array));
    }
public static < T > List < T > arrayToList ( T [ ] array ) { return new ArrayList < T > ( Arrays . asList ( array ) ) ; }
Convenience method for building a list from an array
@param array
@param <T> list type
@return a new list created from var args