定义Map常量,List常量
发布时间:2016-01-18 17:00:05
一般的方式的使用静态代码块。比如:public final static Map map = new HashMap(); static { map.put("key1", "value1"); map.put("k ...
一般的方式的使用静态代码块。比如:
public final static Map map = new HashMap(); static { map.put("key1", "value1"); map.put("key2", "value2"); }
原标题:定义Map常量,List常量
关键词:
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。