how to store all keys of a map in list code example Example: java transform hashmap to list List<Value> list = new ArrayList<Value>(map.values());