SCJP, SCWD <br />A farmer learns more from a bad harvest than a good one.
Originally posted by Monoranjan Gorai:
I think it is better to use Enumeration because Iterator is musch slower than Enumeration.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
"I'm not back." - Bill Harding, Twister
Originally posted by Jim Yingst:
Iterators in general aren't necessarily fail-fast (it's not part of the standard contract for Iterator). But Iterators for certain commonly used classes like ArrayList and LinkedList are fail-fast. For other classes, that's not necessarily the case.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
"I'm not back." - Bill Harding, Twister