//Hint (use this): for (Map.Entry<String, Object> entry : players.entrySet()) { String key = entry.getKey(); Object value = entry.getValue(); // ... }