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

前端 未结 7 2136
执念已碎
执念已碎 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.

    0 讨论(0)
提交回复
热议问题