Here you can find the source of newArrayList(T... items)
public static <T> List<T> newArrayList(T... items)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { public static <T> List<T> newArrayList(T... items) { List<T> list = new ArrayList<T>(); for (T t : items) { list.add(t);//from w ww .java 2 s. c o m } return list; } }