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; public class Main { /**/*ww w.j a va 2 s .com*/ * new ArrayList */ public static <T> ArrayList<T> newArrayList() { return new ArrayList<T>(); } /** * new ArrayList and initialCapacity */ public static <T> ArrayList<T> newArrayList(int size) { return new ArrayList<T>(size); } }