Question : define hashmap and pre set value
Answered by : cloudy-capuchin-lz78u7inmi8u
private static final Map<String, String> m = new HashMap<String, String>() {{ put("RC", "T1"); put("AC", "T1");
}};
Source : https://stackoverflow.com/questions/12306229/populating-a-hashmap-with-predefined-values-java | Last Update : Tue, 19 May 20