Code example for ListIterator

Methods: nextIndex

0
            return it.next();
        } 
 
        @Override 
        public int nextIndex() { 
            return it.nextIndex();
        } 
 
        @Override 
        public DocumentModel previous() { 
            return it.previous();
        } 
 
        @Override 
        public int previousIndex() { 
            return it.previousIndex();
        } 
 
        @Override 
        public void remove() { 
            it.remove();