How to read Excel cell having null values too in Java…?

前端 未结 5 1476
梦谈多话
梦谈多话 2021-02-09 13:17

I\'m using Apache POI 3.6. I\'ve a column which is blank. I would like to be able to read it and then move to the next column. Even if I could resolve the

5条回答
  •  梦如初夏
    2021-02-09 13:47

    You need to check if cell!=null, because if a cell doesn't exist in a row, row.getCell(c) returns null

提交回复
热议问题