What is the difference between row.getLastCellNum()
and row.getNoOfPhysicalCell()
in POI HSSFRow ? Or are they same ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
getLastCellNum()
Gets the index of the last cell contained in this row PLUS ONE
getPhysicalNumberOfCells()
gets the number of defined cells (NOT number of cells in the actual row!). That is to say if only columns 0,4,5 have values then there would be 3.