java hashmap getkey from name code example Example: java get keys from hashmap //returns as set hashmap.keySet()