package my.collection.linear; public interface MyIterator { public boolean hasNext(); //if has next element public Object next(); //get next element }