Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

map initialization java

public static Map<String, String> articleMapOne;
static {
    articleMapOne = new HashMap<>();
    articleMapOne.put("ar01", "Intro to Map");
    articleMapOne.put("ar02", "Some article");
}
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #map #initialization #java
ADD COMMENT
Topic
Name
9+6 =