You should use `entrySet()` instead, which has both the key and the value.