public Object next() { checkModCount(); if (!hasNext()) { throw new java.util.NoSuchElementException("No element at index " + nextIndexJ + "."); } if (nextJ == null) { nextJ = parent.root.get(nextIndexJ); } Object value = nextJ.getValue(); current = nextJ; currentIndex = nextIndexJ++; nextJ = nextJ.next(); return(value); }