SE450: Behavioral Patterns: Iterator [8/10] ![]() ![]() ![]() |
public interface Enumeration {
public Object hasMoreElements();
public Ojbect nextElement();
}
In JDK 1.2 and above:
public interface Iterator {
public boolean hasNext();
public Object next();
public void remove();
}