Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java map create with values

Map<String, String> doubleBraceMap  = new HashMap<String, String>() {{
    put("key1", "value1");
    put("key2", "value2");
}};
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #java #map #create #values
ADD COMMENT
Topic
Name
3+3 =