map遍历的几种方式和效率问题
摘要:
一、map遍历的效率 先创建一个map,添加好数据: Map<String, String> map = new HashMap<>();for (int i = 0; i < 1000000; i++) { map.put(i + "", i + "AA");}1、keySet的for循环方式: 阅读全文
posted @ 2019-01-02 20:18 雪洗中关村 阅读(2853) 评论(0) 推荐(1) 编辑