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