
map
文章平均质量分 62
黑口鱼吃西瓜
这个作者很懒,什么都没留下…
展开
-
遍历Map的四种方法
遍历Map的四种方法 public static void main(String[] args) { Map map = new HashMap(); map.put("1", "value1"); map.put("2", "value2"); map.put("3", "value3"); //第一种:普遍使用,二次取值 System转载 2015-10-20 10:08:54 · 229 阅读 · 0 评论 -
List根据指定key分组
public interface Key { K get(V v); } public class Group { public static Map> create(List list, Key key) { Map> m = new HashMap>(); create(m, list, key); return m; } public static vo转载 2016-08-11 11:22:08 · 1190 阅读 · 0 评论