| Constructor and Description |
|---|
ArrayIterator(V[] array)
Constructor.
|
public ArrayIterator(V[] array)
array - The array to iterate over.public boolean hasNext()
next() would return an element rather than
throwing an exception.)public V next()
next in interface Iterator<V>NoSuchElementException - iteration has no more elements.public void remove()
remove in interface Iterator<V>UnsupportedOperationException - always.Copyright © 2017. All rights reserved.