Java ArrayList Create newArrayList()

Here you can find the source of newArrayList()

Description

new ArrayList

License

Apache License

Declaration

public static <T> ArrayList<T> newArrayList() 

Method Source Code


//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);
    }
}

Related

  1. getArrayList(Map map, Object obj)
  2. getArrayList(String[] args)
  3. getArrayListForArray(Object[] rowData)
  4. getArrayListFromInt(int number)
  5. getArrayListFromString(String wordSequence, String separator)
  6. newArrayList()
  7. newArrayList()
  8. newArrayList()
  9. newArrayList()