Wednesday, July 30, 2008

foreach to iterate over a map in 1.5

When you iterate over a map you need to usually get the key and the value, use this to get them both without having to use the key to get the value!

This also happens to not raise any unchecked warnings which you would have to @SuppressWarnings("unchecked")

No comments:

Post a Comment