map的遍历
来源:互联网 发布:网络视频编解码器 编辑:程序博客网 时间:2024/05/22 08:33
最近刚刚用到了map的遍历,由于有一点忘了所以在使用完之后在此记下来以便以后使用。
代码如下
Map map=new HashMap<Integer,String>(); map.put(1, "nihasdasao"); map.put(2, "nihsdasdao"); map.put(3, "nisdadshao"); map.put(4, "nihadso"); Iterator it=map.entrySet().iterator(); while(it.hasNext()) { Entry e=(Entry) it.next(); System.out.println(e.getKey()); System.out.println(e.getValue()); }
在下只是一只刚成为程序员的小菜鸟,以上如有不对希望各位大神果断指出来!!!!
0 0
- 【Map】Map集合的遍历:
- 关于map的遍历
- Map的遍历
- 对map的遍历
- map 的遍历
- Jquery的map遍历
- Map的遍历
- 对map的遍历
- Map的遍历方法
- java map 的遍历
- map的遍历方法
- Map的遍历方式
- map的遍历方法
- java Map 的遍历
- 容器Map的遍历
- Map的遍历方法
- Map的遍历方法
- Map的高效遍历
- 关于RESTful架构项目的命名约定和for循环的资源优化
- 招投标行业应加快理顺政府市场关系
- 单源最短路径_Dijkstra算法
- 微信电脑版无法登陆
- 第十一周 判断三角形
- map的遍历
- 该错误的解决办法:Incorrect string value: '\xF0\x9F...' for column 'XXX' at row 1
- 开关中断与cpsid/cpsie指令
- 脚本 make
- strlen函数
- IOS-WKWebView的使用以及Cookie的处理
- 转载别人的面试总结,学习
- git使用问题-解决方法 备忘
- 静态库和动态库详解