| Modifier and Type | Method and Description |
|---|---|
static <E> ArrayList<E> |
newArrayList()
Creates a new
ArrayList. |
static <E> ArrayList<E> |
newArrayList(Iterator<? extends E> iterator)
Creates a new
ArrayList filled with the contents of the given
iterator. |
public static <E> ArrayList<E> newArrayList()
ArrayList.E - type of elements contained in new listArrayListpublic static <E> ArrayList<E> newArrayList(Iterator<? extends E> iterator)
ArrayList filled with the contents of the given
iterator.E - type of elements contained in new listiterator - the source iteratorArrayListCopyright © 2020 The Apache Software Foundation. All rights reserved.