Here you can find the source of arrayAsListCopy(T... array)
public static <T> List<T> arrayAsListCopy(T... array)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Main { public static <T> List<T> arrayAsListCopy(T... array) { List<T> list = new ArrayList<>(); list.addAll(Arrays.asList(array)); return list; }/* ww w .j av a 2 s .c o m*/ }