public class Lists
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <E> java.util.ArrayList<E> |
newArrayList()
Creates a new
ArrayList. |
static <E> java.util.ArrayList<E> |
newArrayList(java.util.Iterator<? extends E> iterator)
Creates a new
ArrayList filled with the contents of the given
iterator. |
public static <E> java.util.ArrayList<E> newArrayList()
ArrayList.E - type of elements contained in new listArrayListpublic static <E> java.util.ArrayList<E> newArrayList(java.util.Iterator<? extends E> iterator)
ArrayList filled with the contents of the given
iterator.E - type of elements contained in new listiterator - the source iteratorArrayListCopyright © 2010 - 2023 Adobe. All Rights Reserved