摘要: names.forEach(System.out::println); 阅读全文
posted @ 2018-11-01 22:06 7894561230 阅读(4344) 评论(0) 推荐(0) 编辑
摘要: 基本类型数据,直接用map.put(k,v)修改数据即可 hashMap无序,treeMap按key值的大小排序。 输出: Iterate over the entrySet rather than the keySet. You get a set of Map.Entry<K, V> which 阅读全文
posted @ 2018-11-01 20:35 7894561230 阅读(137) 评论(0) 推荐(0) 编辑