2017年6月1日

Java中定义Map常量,List常量

摘要: 一般的方式的使用静态代码块。比如: public final static Map map = new HashMap(); static { map.put("key1", "value1"); map.put("key2", "value2"); } 下面为一种简单定义Map常量的方式 publ 阅读全文

posted @ 2017-06-01 14:12 IT Ⅳ 阅读(8222) 评论(0) 推荐(1) 编辑

导航