previous | start | next

LinkListIterator's hasNext Method

private class LinkedListIterator implements ListIterator
{  . . .
   public boolean hasNext()
   {
      if (position == null)
         return first != null;
      else
         return position.next != null;
   }
   . . .
}


previous | start | next