. Advertisement .
..3..
. Advertisement .
..4..
I am trying to instantiate map in java but I’ve not found a solution for it yet. Can someone share with me your experience?
Map<String, String> myMap = new HashMap<String, String>() {{
put("a", "b");
put("c", "d");
}};
Simplicity, you can do this instruction here