SE450: Behavioral Patterns: Iterator [4/7] ![]() ![]() ![]() |
public interface Enumeration { public Object hasMoreElements(); public Object nextElement(); }In JDK 1.2 and above:
public interface Iterator { public boolean hasNext(); public Object next(); public void remove(); }
Example files are here