java Map的遍历

List下的Map的遍历方法

         List<String> Keys =new ArrayList<String>();
        if(SheetData.size() > 0 ){
            for(int row = 0;row<SheetData.size() ;row ++ ){
                Iterator<Map.Entry<Integer, Object>> ExcelkoumokuId = SheetData.get(row).entrySet().iterator();
                while (ExcelkoumokuId.hasNext()) {
                    Map.Entry<Integer, Object>  koumokuId = ExcelkoumokuId.next();
                    Keys.add(koumokuId.getValue().toString());
                }
            }

        }
原文地址:https://www.cnblogs.com/sunxun/p/5587333.html