java create map directly 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");
}};