/** * Returns the next element in the iteration. * * @return The next element in the iteration. * * @throws NoSuchElementException The are no more elements available. */ public Object next() { if (! hasNext()) throw new NoSuchElementException(); return array[index++]; }