New course! Every coder should learn Generative AI!
Try a free lesson0
https://docs.oracle.com/javase/7/docs/api/java/util/HashMap.html says:
HashMap<K,V> map = new HashMap<>();
map.put (K k, V v);
for example:
HashMap<String,Integer> score = new HashMap<>();
score.put ("ramjanali", 1000);