Design-Patterns/simple/iterator/src/org/tektutor/Main.java
<reponame>yogeshvar/CourseNotespackage org.tektutor;

public class Main {
	public static void main(String[] args) {
	      
	    int l[] = {1, 2, 3, 4, 5};
	    ConcreteAggregate list = new ConcreteAggregate(l);
	    
	    Iterator it = list.createIterator();
	    for ( ; !it.isDone(); it.next()) {
	      System.out.println("Item value: " + it.currentItem());
	    }
	  }
}
