Code example for ListIterator

Methods: hasNext

0
        this.iterator = iterator;
    } 
 
    //----------------------------------------------------------------------- 
    public boolean hasNext() { 
        return iterator.hasNext();
    } 
 
    public E next() { 
        return iterator.next();
    } 
 
    public int nextIndex() { 
        return iterator.nextIndex();
    } 
 
    public boolean hasPrevious() { 
        return iterator.hasPrevious();
    } 
 
    public E previous() {