requierment for enhanced for loop in java (J2SE5.0)



Enhanced for loops allow convenient iteration over collections, without the need for an explicitly defined iterator. This reduces the need for boilerplate iteration code and the corresponding opportunities for errors.
as per JSR 121

No comments:

Post a Comment