Here you can find the source of asList(T[] array)
public static <T> List<T> asList(T[] array)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { public static <T> List<T> asList(T[] array) { List<T> list = new ArrayList<T>(); for (T t : array) { list.add(t);//from www . java 2 s.co m } return list; } }