This content has been marked as final. Show 3 replies
david_pocivalnik wrote:No idea because you didn't provide a SSCCE*: the MyClass cannot be compiled.
no ideas? conclusions?
But you are removing elements from an iterator so it doesn't sound surprising that nothing is displayed all of a sudden.
Try it like this:
printCollection(a); printCollection2(a.iterator()); it = myClass.filter(it); printCollection(a); printCollection2(a.iterator());
Edited by: prometheuzz on Nov 27, 2007 1:00 PM
And as mlk already noted: when an Iterator is at the end, it doesn't start over.