create a new hashmap from an array java 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");
}};