Here you can find the source of asList(T[] array)
public static <T> List<T> asList(T[] array)
//package com.java2s; import java.util.List; import java.util.Arrays; import java.util.Collections; public class Main { public static <T> List<T> asList(T[] array) { List<T> list;/*from www . j a v a 2 s . c o m*/ if (array != null) { list = Arrays.asList(array); } else { list = Collections.emptyList(); } return list; } }