Use the keySet() method to return a set with all the keys of a Map.
If you want to keep your Map ordered you can use a TreeMap.
Use the keySet() method to return a set with all the keys of a Map.
If you want to keep your Map ordered you can use a TreeMap.