Define Hashmap And Pre Set Value

[Solved] Define Hashmap And Pre Set Value | Perl - Code Explorer | yomemimo.com
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

Answers related to define hashmap and pre set value

Code Explorer Popular Question For Perl