Java ArrayList Create newArrayList(int initialCapacity)

Here you can find the source of newArrayList(int initialCapacity)

Description

new Array List

License

Open Source License

Declaration

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

Method Source Code


//package com.java2s;

import java.util.*;

public class Main {
    public static <T> ArrayList<T> newArrayList(int initialCapacity) {
        return new ArrayList<T>(initialCapacity);
    }//  w  w w  .  ja v  a 2 s  .  c  o  m
}

Related

  1. newArrayList(E... elements)
  2. newArrayList(E... elements)
  3. newArrayList(final Collection elements)
  4. newArrayList(final Iterator iter)
  5. newArrayList(int initialCapacity)
  6. newArrayList(int initialCapacity)
  7. newArrayList(int initialCapacity)
  8. newArrayList(int size)
  9. newArrayList(Iterable elements)