Here you can find the source of newArrayList()
Parameter | Description |
---|---|
L | type |
public static <L> List<L> newArrayList()
//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>(); } }