how to get the key from a hashmap code example Example: java get keys from hashmap //returns as set hashmap.keySet()