Certain principles hold for the use of iterators: In general, you should be able to have multiple traversals in progress at the same time; that is, an iterator should allow for the concept of nested ...
The following is an implementation in Java for an Android application, but the logic would apply to any language. Your definition of a Comment object will be different than mine so I left that class ...