Get actual cell value of excel cell with POI without defining a datatype

前端 未结 2 1348
渐次进展
渐次进展 2021-01-22 00:51

I catch my cells from an .xls file like this:

cell.getStringCellValue();

But since some of the cells are numeric, I have to do this instead:

2条回答
  •  感动是毒
    2021-01-22 01:41

    try using cell.getCellType() as you have

    1. numeric
    2. date
    3. numeric in scientific notation

提交回复
热议问题