Here you can find the source of newList(T... list)
public static <T> ArrayList<T> newList(T... list)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.Arrays; public class Main { public static <T> ArrayList<T> newList(T... list) { return new ArrayList<T>(Arrays.asList(list)); }//from ww w.j a v a 2 s . c om }