Usually don't use HSSFRow.getPhysicalNumberOfCells() (it may return wrong information) to determine how many columns there are in excel spreadsheet, use HSSFRow.getLastCellNum() instead. getPhysicalNumberOfCells is something like for internal use.
One quick note for poi lib accessing excel
最新推荐文章于 2024-09-03 20:52:56 发布
本文介绍了在使用Excel进行数据处理时,推荐使用HSSFRow.getLastCellNum()而非HSSFRow.getPhysicalNumberOfCells()来确定工作表中列的数量。getPhysicalNumberOfCells()可能会返回错误的信息,因此不建议用于获取实际的单元格数量。
6210

被折叠的 条评论
为什么被折叠?



