从来就没有救世主  也不靠神仙皇帝  要创造人类的幸福  全靠我们自己  

错误

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

 

posted @ 2020-11-06 17:15  T,X  阅读(1859)  评论(0编辑  收藏  举报