java get keys from hashmap

Java
//returns as set
hashmap.keySet()
Source

Also in Java: