Here you can find the source of newArrayList()
public static <T> ArrayList<T> newArrayList()
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.Arrays; public class Main { public static <T> ArrayList<T> newArrayList() { return new ArrayList<T>(); }/*from ww w . j a va 2s . c o m*/ @SafeVarargs public static <T> ArrayList<T> newArrayList(T... values) { return (ArrayList<T>) Arrays.asList(values); } }