标签:ring nal hashmap string 变量 dem hash 一个 demo
public class Demo{ private static final Map<String, String> myMap; static { myMap = new HashMap<String, String>(); myMap.put("a", "b"); myMap.put("c", "d"); } }
HashMap<String, String > h = new HashMap<String, String>(){{ put("a","b"); }};
标签:ring nal hashmap string 变量 dem hash 一个 demo
原文地址:http://www.cnblogs.com/songshu120/p/7928102.html