/** * Return the next element from the current iterator. * * @return The next element from the current iterator. * * @throws NoSuchElementException There are no more elements. */ public Object next() { if (!hasNext()) { throw new NoSuchElementException(); } return iters[index].next(); }