add to 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) );
HashMap<String, String> map = new HashMap<>();
map.put("key", "value");
mymap.insert ( std::pair<char,int>('a',100) );