http://www.w3.org/ns/prov#value | - In the following example, two different types of containers are created??an ArrayList and a HashMap??and they are each filled with, respectively, Mouse and Hamster objects. (These classes are defined earlier in this chapter.) Because an Iterator hides the structure of the underlying container, Printer.printAll( ) doesn??t know or care what kind of container the Iterator comes from: Feedback
|