One quick note for poi lib accessing excel

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)