ringa_lee
Map does not implement the Collection interface
Collection means that this is a collection, that is, the interface of the collection is defined
Iterator is the interface for traversing collections
To reduce coupling. Iterator also needs to be reused as a component, not just used in the Collection interface.
First statement:
Map does not implement the Collection interface
Collection means that this is a collection, that is, the interface of the collection is defined
Iterator is the interface for traversing collections
Answer:
To reduce coupling. Iterator also needs to be reused as a component, not just used in the Collection interface.