首页 > 编程 > Java > 正文

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

2019-11-08 03:27:29
字体:
来源:转载
供稿:网友
public static boolean isRowEmpty(Row row) {   for (int c = row.getFirstCellNum(); c < row.getLastCellNum(); c++) {       Cell cell = row.getCell(c);       if (cell != null && cell.getCellType() != Cell.CELL_TYPE_BLANK)           return false;   }   return true;}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表