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.
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.