java how initial values map to list 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");
}};