java - sheet.getLastRowNum() gives different values -
i have 2 excel files single row. trying last row number of file. first file gives value 0 , second 1 1. idea why there inconsistency in this?
read documentation (from here):
gets number last row on sheet. owing idiosyncrasies in excel file format, if result of calling method zero, can't tell if means there 0 rows on sheet, or 1 @ position zero. case, additionally call getphysicalnumberofrows() tell if there row @ position 0 or not.
Comments
Post a Comment