Here you can find the source of newArrayListWithCapacity(int initSize)
public static <T> ArrayList<T> newArrayListWithCapacity(int initSize)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; public class Main { public static <T> ArrayList<T> newArrayListWithCapacity(int initSize) { return new ArrayList<T>(initSize); }//from w ww . j av a 2 s . com }