Miscellany
public text v1 · immutable//page 8:
private ArrayList<Student> studentCollection;
studentCollection = new ArrayList<Student>();
//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
}