/**
*
* @description: 判断数据最后一行
* @author: lkm
* @date: 2023/7/13 17:11
**/
public static boolean isEmptyRow(Row row) {
if (row == null || row.toString().isEmpty()) {
return true;
} else {
Iterator<Cell> it = row.iterator();
boolean isEmpty = true;
while (it.hasNext()) {
Cell cell = it.next();
if (cell.getCellTypeEnum() != CellType.BLANK) {
isEmpty = false;
break;
}
}
return isEmpty;
}
}
Java 导入验证数据最后一行
最新推荐文章于 2024-06-12 23:40:32 发布