@SuppressWarnings("deprecation")
public static Object getCellValue(Cell cell) {
if (cell == null) {
return "";
}
Object obj = null;
switch (cell.getCellTypeEnum()) {
case BOOLEAN:
obj = cell.getBooleanCellValue();
break;
case ERROR:
obj = cell.getErrorCellValue();
break;
case FORMULA:
&n
Java POI获取Cell单元格数据
最新推荐文章于 2022-08-31 17:30:17 发布