Composite patterns and iterator

Does anyone know how to use the Composite and iterator design patterns in Java?An example would probably clarify things.
[134 byte] By [oyebode1] at [2007-9-26 4:04:24]
# 1

There are examples in the standard classes.

An example of Composite is the java.awt.Component abstract class. A Container is a Component that can hold other Components. The recursive composition is not handled directly by the Component class, but indirectly by the Container subclass.

Examples of Iterator are the java.util.Enumeration and java.util.Iterator interfaces and the classes that implement them.

schapel at 2007-6-29 13:02:50 > top of Java-index,Archived Forums,New To Java Technology Archive...