adding values to map java code example
Example 1: java add to map
HashMap<String, String> map = new HashMap<>();
map.put("key", "value");
Example 2: java add element to map
map.put(key, Object);
//exemple:
Map<String, String> map = new HashMap<String, String>();
map.put("mykey", "myvalue");