Here you can find the source of newArrayList(int initialCapacity)
public static <E> ArrayList<E> newArrayList(int initialCapacity)
//package com.java2s; import java.util.*; public class Main { public static <E> ArrayList<E> newArrayList() { return new ArrayList<E>(); }/*ww w . jav a 2 s . co m*/ public static <E> ArrayList<E> newArrayList(int initialCapacity) { return new ArrayList<E>(initialCapacity); } /** * new ArrayList(Collection) * * @param c * @param <E> * @return */ public static <E> ArrayList<E> newArrayList(Collection<? extends E> c) { return new ArrayList<E>(c); } }