摘要: 遍历Map的方式 第一种通过 map1.keySet() 获取key 通过key 找到value; 第二种通过Map.Entry(String,Integer) 获取,然后使用entry.getKey()获取到键,通过entry.getValue()获取到值;第三种只遍历键或者值,通过加强for循环 阅读全文
posted @ 2020-05-31 22:37 萧萧凌云 阅读(311) 评论(0) 推荐(0) 编辑