android/guava/src/com/google/common/collect/Lists.java
@GwtCompatible(serializable = true)
  public static <E> ArrayList<E> newArrayList(Iterator<? extends E> elements) {
    ArrayList<E> list = newArrayList();
    Iterators.addAll(list, elements);
    return list;
  }
@GwtCompatible(serializable = true)
  public static <E> ArrayList<E> newArrayList(Iterator<? extends E> elements) {
    ArrayList<E> list = newArrayList();
    Iterators.addAll(list, elements);
    return list;
  }
@ GwtCompatible ( serializable = true ) public static < E > ArrayList < E > newArrayList ( Iterator < ? extends E > elements ) { ArrayList < E > list = newArrayList ( ) ; Iterators . addAll ( list , elements ) ; return list ; }
Creates a <i>mutable</i> {@code ArrayList} instance containing the given elements; a very thin
shortcut for creating an empty list and then calling {@link Iterators#addAll}.

<p><b>Note:</b> if mutability is not required and the elements are non-null, use {@link
ImmutableList#copyOf(Iterator)} instead.
Creates a <i > mutable< / i > { @code ArrayList } instance containing the given elements ; a very thin shortcut for creating an empty list and then calling { @link Iterators#addAll } .