Can somebody provide a real life example regarding use of iterators. I tried searching google but was not satisfied with the answers.
Iterate through a set of homework questions.
But seriously, Iterators can provide a unified way to traverse the items in a collection regardless of the underlying data structure.
Read the first two paragraphs here for a little more info.