while (src.hasNext())
dest.add(src.next());
if (src != null) { while (src.hasNext()) { T value = src.next(); dest.add(value);
while (iter.hasNext()) { collection.add(iter.next()); return collection;
while (sourceIterator.hasNext()) {
targetCollection.add(sourceIterator.next());
Iterator is not null, iterate over all T elements in it and add them to the given Collection.
if (iteratorFrom != null) { while (iteratorFrom.hasNext()) { collectionTo.add(iteratorFrom.next());
while (source.hasNext()) { target.add(source.next()); return target;
if (source == null) return target; for (; source.hasNext(); target.add(source.next())) ; return target;
while (source.hasNext()) { dest.add(source.next()); return dest;
LinkedList<T> result = new LinkedList<T>(); while (i.hasNext()) { result.add(i.next()); return result;