Design an iterator for a collection of collections in java. The iterator should hide the nesting, allowing you to iterate all of the elements belonging to all of the collections as if you were working with a single collection
Design an iterator for a collection of collections in java. The iterator should hide
Share
Here is a possible implementation. Note that I left remove() unimplemented: