Code example for ListIterator

Methods: hasPrevious

0
        /** 
         * Check if there is another element on the list. 
         * @return if another element 
         */ 
        public boolean hasNext() { 
            return iter.hasPrevious();
        } 
 
        /** 
         * Get the next element. 
         * @return the next element. 
         */ 
        public E next() { 
            return iter.previous();
        } 
 
        /** 
         * Remove the current element. 
         */ 
        public void remove() { 
            iter.remove();