POI读取Excel如何判断行为空

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;
}

  

原文地址:https://www.cnblogs.com/Andrew520/p/11191044.html