java create and initialize map code example
Example: new hashmap java
Map<String, String> myMap = new HashMap<String, String>() {{
put("a", "b");
put("c", "d");
}};
Map<String, String> myMap = new HashMap<String, String>() {{
put("a", "b");
put("c", "d");
}};