Java ArrayList Create newArrayListWithCapacity(int initSize)

Here you can find the source of newArrayListWithCapacity(int initSize)

Description

new Array List With Capacity

License

Apache License

Declaration

public static <T> ArrayList<T> newArrayListWithCapacity(int initSize) 

Method Source Code


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

Related

  1. newArrayList(T... objectList)
  2. newArrayList(T... objs)
  3. newArrayList(X... args)
  4. newArrayListOnNull(List list)
  5. newArrayListSized(Iterable fromSize)
  6. newArrayOfEmptyArrayList(int len)
  7. sizedArrayList(final int size)
  8. sizedArrayList(int capacity)
  9. stringToArrayList(String s, String sep)