If you're only interested in the keys, you can iterate through the keySet() of the map:
If you only need the values, use values():
-
// ..
-
}
Finally, if you want both the key and value, use entrySet():
Add Remove During iterating
Iterate through the entrySet like so:
RJM Article Type
Quick Reference