让我们一起爱米兰
站内搜搜:
移动设备
请扫描二维码
或访问
m.milan100.com
您所在的位置 -> 米兰百分百 -> JAVA -> 遍历HashMap

遍历HashMap

点击数:1185 发表时间:2011-01-21 19:43:52 作者: 来源链接:
分享到:
分享到微信

   HashMap map=new HashMap();
   map.put("1","name1");
   map.put("2","name2");
   map.put("3","name3");
   map.put("4","name4");
   map.put("5","name5");
  
  
for (Iterator iter = map.keySet().iterator(); iter.hasNext();)
{
    Object key = iter.next();
    Object val = map.get(key);
}  

0
很 好
0
一 般
0
差 劲
热门新闻
相关文章
上一篇: jsp中request传递参数汉字乱码(经典)
下一篇: 【学习】JSP教程
评论区
匿名

返回首页 | 收藏本页 | 回到顶部
Copyright 2010. 米兰百分百 Powered By Bridge.
京ICP备15050557号