Here you can find the source of asList(T[] array)
public static <T> List<T> asList(T[] array)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static <T> List<T> asList(T[] array) { List<T> list = new ArrayList<>(); for (T value : array) { list.add(value);/*from www. j a va 2s. com*/ } return list; } public static List<Byte> asList(byte[] array) { List<Byte> list = new ArrayList<>(); for (byte value : array) { list.add(value); } return list; } }