title: Alternative to deprecated getCellType
body: <p>I'm reading an excel-file (file extension xlsx) using org.apache.poi 3.15. </p>
  
  <p>This is my code:</p>
  
  <pre><code>try (FileInputStream fileInputStream = new FileInputStream(file); XSSFWorkbook workbook = new XSSFWorkbook(file)) {
      XSSFSheet sheet = workbook.getSheetAt(0);
      Iterator&lt;Row&gt; rowIterator = sheet.iterator();
      while (rowIterator.hasNext()) {
          Row row = rowIterator.next();
  
          Iterator&lt;Cell&gt; cellIterator = row.cellIterator();
          while (cellIterator.hasNext()) {
              Cell cell = cellIterator.next();
              switch (cell.getCellType()) {
                  case Cell.CELL_TYPE_NUMERIC:
                      System.out.print(cell.getNumericCellValue() + "(Integer)\t");
                      break;
                  case Cell.CELL_TYPE_STRING:
                      System.out.print(cell.getStringCellValue() + "(String)\t");
                      break;
              }
          }
          System.out.println("");
      }
  } catch (Exception e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>I get a warning that <code>cell.getCellType()</code> is deprecated. Can anyone tell me the alternative?</p>