How to get row count in an Excel file using POI library?

前端 未结 7 2192
执念已碎
执念已碎 2020-12-08 09:37

Guys I\'m currently using the POI 3.9 library to work with excel files. I know of the getLastRowNum() function, which returns a number of rows in an Excel file.

7条回答
  •  生来不讨喜
    2020-12-08 10:12

    Sheet.getPhysicalNumberOfRows() does not involve some empty rows. If you want to loop for all rows, do not use this to know the loop size.

提交回复
热议问题