adding to a map code example
Example 1: java add to map
HashMap<String, String> map = new HashMap<>();
map.put("key", "value");
Example 2: c++ map insert
mymap.insert ( std::pair<char,int>('a',100) );
Example 3: java add element to map
map.put(key, Object);
//exemple:
Map<String, String> map = new HashMap<String, String>();
map.put("mykey", "myvalue");