Introduction to OOP Chapter 19: Container Classes : next previous audio real text

An Enumeration Loop in Java

		// create the iterator object
	Enumeration e = aList.elements();
		// then do the loop
	while (e.hasMoreElements()) {
		Object obj = e.nextElement();
		// ... do something with obj
	}
Interface consists of two methods, hasMoreElements and nextElement.
Intro OOP, Chapter 19, Slide 15