Posts Tagged ‘iterable in java’

How to make custom collections iterable?

How to make custom collections iterable?

The benefits of using an iterator is to allow the the client to iterate over the collection of objects, without exposing implementation details. This gives you the benefit to change what collection the Iterator iterates over and how each element is served, without making any change the client’s code. To iterate a custom collection,...

Full Post

Copyright © 2019 http://www.techzoo.org. All rights reserved.
Proudly powered by WordPress. Developed by 7Tech Solutions