需求:使用static map存常量
public static Map<String, String> articleMapOne;
static {
articleMapOne = new HashMap<>();
articleMapOne.put("ar01", "Intro to Map");
articleMapOne.put("ar02", "Some article");
}
标签:Map,Java,map,static,articleMapOne,put
From: https://www.cnblogs.com/attack204/p/16861933.html