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

前端 未结 5 1456
梦谈多话
梦谈多话 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:50

    Thank you Venkat, it work for me also except
    for those who are using Apache 4.0.0 and up they need to do it as :

    HSSFCell cell=row.getCell(c, org.apache.poi.ss.usermodel.Row.MissingCellPolicy.CREATE_NULL_AS_BLANK);
    

提交回复
热议问题