I have a Hashmap in Java like this:
private Map team1 = new HashMap();
Then I fill it like th
A solution can be, if you know the key position, convert the keys into an String array and return the value in the position:
public String getKey(int pos, Map map) { String[] keys = (String[]) map.keySet().toArray(new String[0]); return keys[pos]; }