Java ArrayList Create newArrayList()

Here you can find the source of newArrayList()

Description

new Array List

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;
import java.util.Arrays;

public class Main {

    public static <T> ArrayList<T> newArrayList() {
        return new ArrayList<T>();
    }/*from ww  w .  j  a va 2s  . c  o m*/

    @SafeVarargs
    public static <T> ArrayList<T> newArrayList(T... values) {
        return (ArrayList<T>) Arrays.asList(values);
    }
}

Related

  1. newArrayList()
  2. newArrayList()
  3. newArrayList()
  4. newArrayList()
  5. newArrayList()
  6. newArrayList()
  7. newArrayList()
  8. newArrayList()
  9. newArrayList()