关于Cannot get a NUMERIC value from a STRING cell报错问题

无法从字符串单元格获得数值;

switch (cell.getCellTypeEnum()) {
case NUMERIC:
    int numericCellValue =(int) cell.getNumericCellValue();
    value += numericCellValue + ",";
    break;
case STRING:
    String stringCellValue = cell.getStringCellValue();
    value += stringCellValue + ",";
    break;
case BLANK:
    value += "0";
    break;
default:
    break;

猜你喜欢

转载自blog.csdn.net/qq_26582185/article/details/81666016