public interface MyIterator { /**Returns true if the iteration has more elements*/ public boolean hasNext(); /**Returns the next element in the iteration*/ public E next(); /**Removes from the underlying collection the last element returned by the iterator*/ public void remove(); }