码迷,mamicode.com
首页 > 编程语言 > 详细

java的哈希遍历 hashmap

时间:2018-02-02 11:31:21      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:class   blog   div   onclick   map   gpo   try   key   tle   

 Map<String,String> map = new HashMap<String, String>();
                map.put("title","xxx");
                map.put("condition","0");
                for (Map.Entry<String,String> entry:map.entrySet()){
                    Log.d(TAG, "onClick: "+entry.getKey());
                    Log.d(TAG, "onClick: "+entry.getValue());
                }

 

java的哈希遍历 hashmap

标签:class   blog   div   onclick   map   gpo   try   key   tle   

原文地址:https://www.cnblogs.com/norm/p/8403489.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!