Here you can find the source of newArrayList()
public static final <E> ArrayList<E> newArrayList()
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.Collections; public class Main { /**/*from www.j a va2 s . c o m*/ * Constructs an empty ArrayList. */ public static final <E> ArrayList<E> newArrayList() { return new ArrayList<E>(); } /** * Constructs an empty ArrayList. */ public static final <E> ArrayList<E> newArrayList( @SuppressWarnings("unchecked") E... e) { ArrayList<E> list = new ArrayList<E>(); Collections.addAll(list, e); return list; } }