当前位置: 首页 > 工具软件 > Excel4J > 使用案例 >

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

帅彦
2023-12-01
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

 类似资料: