title: Apache POI : Check if a column is empty
body: <p>I need to check if a column is empty or not in .xlsx files but couldn't find anything smoother than this :</p>
  
  <pre><code>    public static boolean isColumnEmpty(int column, int firstRow, XSSFSheet sheet) {
  
  
      XSSFRow row = sheet.getRow(firstRow);
  
      while (row != null) {
          Cell c = row.getCell(column, Row.RETURN_BLANK_AS_NULL);
          if (c != null) {
              return false;
          }
          row = sheet.getRow(firstRow++);
      }
      return true;
  
  }
  </code></pre>
  
  <p><code>firstRow</code> is just the row you want to start with (actually my column isn't completely empty, there still is a header).</p>
  
  <p>I wonder if some of you had better ideas!</p>