java excel poi导入 过滤空行的方法 判断是否是空行

1     private  boolean isRowEmpty(Row row){
2         for (int c = row.getFirstCellNum(); c < row.getLastCellNum(); c++) {
3             Cell cell = row.getCell(c);
4             if (cell != null && cell.getCellType() != Cell.CELL_TYPE_BLANK)
5                 return false;
6         }
7         return true;
8     }
原文地址:https://www.cnblogs.com/feibazhf/p/7229283.html