错误
1. An enum switch case label must be the unqualified name of an enumeration con
CellType cellType = cell.getCellType(); switch (cellType) { case CellType.NUMERIC:{ //错误 value = String.valueOf(cell.getNumericCellValue()); } case CellType.FORMULA:{ //错误 } default: break; }
改为:
CellType cellType = cell.getCellType(); switch (cellType) { case NUMERIC:{ value = String.valueOf(cell.getNumericCellValue()); } case FORMULA:{ } default: break; }