Code example for ListIterator

Methods: hasPrevious

0
    public int nextIndex() { 
        return iterator.nextIndex();
    } 
 
    public boolean hasPrevious() { 
        return iterator.hasPrevious();
    } 
 
    public E previous() { 
        return iterator.previous();
    } 
 
    public int previousIndex() { 
        return iterator.previousIndex();
    } 
 
    public void remove() { 
        throw new UnsupportedOperationException("remove() is not supported");
    }