Java ArrayList Create newArrayList()

Here you can find the source of newArrayList()

Description

Create new java.util.ArrayList .

License

Apache License

Parameter

Parameter Description
L type

Declaration

public static <L> List<L> newArrayList() 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    /**//from   ww  w  .  ja va2 s  . co m
     * Create new {@link java.util.ArrayList}.
     *
     * @param <L>
     *            type
     * @return {@link java.util.ArrayList}
     */
    public static <L> List<L> newArrayList() {
        return new ArrayList<L>();
    }
}

Related

  1. newArrayList()
  2. newArrayList()
  3. newArrayList()
  4. newArrayList()
  5. newArrayList()
  6. newArrayList()
  7. newArrayList()
  8. newArrayList(A... elements)
  9. newArrayList(Collection c)