Java ArrayList Create getArrayList()

Here you can find the source of getArrayList()

Description

get Array List

License

Open Source License

Declaration

public static <E> List<E> getArrayList() 

Method Source Code


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

Related

  1. createArrayList(Object[] a)
  2. createArrayList(String[] a)
  3. createArrayList(T... objects)
  4. createArrayListFilledIncrement(int count)
  5. createArrayListOfArrayList(int size)
  6. getArrayList()
  7. getArrayList()
  8. getArrayList(final Object o, final Class clazz)
  9. getArrayList(List list)