title: Find last row in Excelsheet with data - Java
body: <p>All,</p>
  
  <p>How can I find the last row in an excelsheet with data populated in the cell. i.e.</p>
  
  <pre><code>   | C1  | C2  | C3  | C4 |
  ---------------------------
  R1 |  1      2    3      4  
  R2 |  5      6    7      8  
  R3 |  
  R4 |        9
  </code></pre>
  
  <p>So in the example above, I wish to retrieve the total count of rows as 4 since Row number 4 has something populated.</p>
  
  <p>Is there any such library function available? Also, what is the best Java library for handling Microsoft Office document operations?</p>