In collection, there would be many situations where we need to retrieve the collection elements. Example, we need to show each element. For these situations Iterator is the best solution.
How it implements :-
First iterator comes to start point of the collection by using iterator().
0 Comment(s)