//page 8: private ArrayList studentCollection; studentCollection = new ArrayList(); //page 9: //(to show the iterator() method and Iterator interface) Iterator it = studentCollection.iterator(); while(it.hasNext()){ Student thisStudent = it.next(); //Do something with this student }