SWE 619 In Class Exercise Number 4
September 26, 2017


Consider the Java Iterator<E> interface:

   public boolean hasNext();
   public E next() throws NoSuchElementException
   public void remove() throws IllegalStateException


Suppose we writing tests for the Iterator interface based on the JavaDoc specifications. Note the precondition.