Here you can find the source of getArrayList()
public static <E> List<E> getArrayList()
//package com.java2s; import java.util.ArrayList; import java.util.Collection; import java.util.List; public class Main { public static <E> List<E> getArrayList() { return new ArrayList<E>(); }/*from w ww .j a v a2s. c o m*/ public static <E> List<E> getArrayList(int initialCapacity) { return new ArrayList<E>(initialCapacity); } public static <E> List<E> getArrayList(Collection<? extends E> collection) { return new ArrayList<E>(collection); } }