ArrayIterator Class
- public class ArrayIterator
extends Object
implements Iterator
ArrayIterator
provides an Iterator
over a Java
array. ArrayIterator
will return each element in the array
in the order they are stored in the array. Multidimensional arrays are
handled by returning a sequence of sub-arrays. So a three dimensional array
of integers will return a sequence of two dimensional arrays of integers.
This Iterator
does not support the remove()
method.
-
Hierarchy
-
Object
ArrayIterator
-
All Implemented Interfaces
-
Iterator
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayIterator
public ArrayIterator(Object
array)
hasNext() Method
public boolean hasNext()
next() Method
public Object
next()
remove() Method
public void remove()