文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>hashmap 遍历 取值

hashmap 遍历 取值

时间:2010-10-23  来源:slddyb

        Map<String, String> gettext=new HashMap<String, String>();
         gettext=link.linkGet("F://htmls/compare/98.15.3.html","utf-8");;//给以一个hashpmap实例给gettext
         Iterator it = gettext.entrySet().iterator();
         while(it.hasNext())
         {
             Map.Entry<String,String> hiddenMapEntry = (Map.Entry<String,String>)it.next();  
             String key = hiddenMapEntry.getKey();
             key=link.replace("dispbbs", "http://www.cc98.org/list", key);
             urllist.add(key);
             String value = hiddenMapEntry.getValue();  
             System.out.println(key+"  "+value);
         }
         System.out.println(gettext.size());
相关阅读 更多 +
排行榜 更多 +
瓢虫少女

瓢虫少女

飞行射击 下载
潜艇鱼雷

潜艇鱼雷

飞行射击 下载
网络掠夺者

网络掠夺者

飞行射击 下载