Here you can find the source of asList(Object[] array)
public static List<Object> asList(Object[] array)
//package com.java2s; /* Copyright (c) 2008 Charles Rich and Worcester Polytechnic Institute. * All Rights Reserved. Use is subject to license terms. See the file * "license.terms" for information on usage and redistribution of this * file and for a DISCLAIMER OF ALL WARRANTIES. *//*ww w . j a va 2 s . com*/ import java.util.*; public class Main { /** * Returns the list view of given array or null if array is null. */ public static List<Object> asList(Object[] array) { return array == null ? null : Arrays.asList(array); } }