Here you can find the source of asList(T... a)
public static <T> List<T> asList(T... a)
//package com.java2s; import java.util.*; public class Main { public static <T> List<T> asList(T... a) { if (a == null || a.length == 0) { return new ArrayList<T>(); }/*from ww w. j av a2s .c o m*/ return Arrays.asList(a); } }