Here you can find the source of convertArrayToList(T[] array)
public static <T> List<T> convertArrayToList(T[] array)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static <T> List<T> convertArrayToList(T[] array) { return Arrays.asList(array); }//from w w w .j a v a 2s .c o m }