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.Arrays; import java.util.List; public class Main { public static <T> List<T> asList(T... array) { return new ArrayList<T>(Arrays.asList(array)); }//w w w. j av a2 s . c om }