title: CELL_TYPE_BOOLEAN cannot be resolved or is not a field Error
body: <p>My code is below, I am getting this error: </p>
  
  <blockquote>
    <p>CELL_TYPE_BOOLEAN cannot be resolved or is not a field Error</p>
  </blockquote>
  
  <p>Can anybody help me here?</p>
  
  <pre><code>private static String parseCellAsString(Cell cell) {
          String val = null;
          if (cell != null) {
              switch (cell.getCellType()) {
              case Cell.CELL_TYPE_BOOLEAN:
                  val = cell.getBooleanCellValue() + "";
                  break;
              case Cell.CELL_TYPE_NUMERIC:
                  val = new BigDecimal(cell.getNumericCellValue()).toPlainString();
                  break;              
              default:
                  val = cell.getStringCellValue();
                  break;
              }
          }
          return val;
      }
  </code></pre>