[Solved] Putting null value into HashMap is not possible somehow

[ad_1]

The value is not the issue in this case. Since the HashMap is declared to have a String key and you’re trying to put an int key in, it’s not complaining about the value but the key.

1

[ad_2]

solved Putting null value into HashMap is not possible somehow