`
wgbaoweii
  • 浏览: 26935 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Map循环

阅读更多

<!--?xml version="1.0" encoding="UTF-8" standalone="no"?--> Map<String, String> map = ...
for (String key : map.keySet()) {
   System.out.println(key + map.get(key));
}
for (Map.Entry<String, String> entry : map.entrySet()) {
   System.out.println(entry.getKey() + entry.getValue());
}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics