李大钊绞刑的过程:jsp中Map遍历

来源:百度文库 编辑:偶看新闻 时间:2024/06/11 15:15:48
Map map = new HashMap();
        map.put("11310001","上海烟草集团有限责任公司");
        map.put("12150101","内蒙古昆明卷烟有限责任公司");
        map.put("20320001","江苏中烟工业有限责任公司");
        map.put("20330001","浙江中烟工业有限责任公司");
        map.put("12510102","四川烟草工业有限责任公司");
        map.put("12530401","红塔烟草(集团)有限责任公司");
        map.put("18000001","中国烟草国际有限公司");
        map.put("20340001","安徽中烟工业公司");
        map.put("20360001","江西中烟工业有限责任公司");
        map.put("11310001","上海烟草集团有限责任公司");
        int i = 1;
       
        Set set = map.entrySet();
        Iterator iter =  set.iterator();
       
        while (iter.hasNext())
        {
            Entry entry = (Entry)iter.next();
            System.out.println(entry.getKey() + "--" + entry.getValue());
        }