Code example for Iterator

Methods: next

0
            public void remove() { 
                this.itty.remove();
            } 
 
            public T next() { 
                return this.itty.next();
            } 
 
            public boolean hasNext() { 
                return this.itty.hasNext();
            } 
        }; 
    } 
 
    public void close() { 
        if (this.iterable instanceof CloseableIterable) {
            ((CloseableIterable) this.iterable).close();
        } 
    } 
 
    public String toString() {