-1

ERROR

case CellType.STRING: case Cell.CELL_TYPE_NUMERIC: case Cell.CELL_TYPE_BLANK: not working and also tried CellType.STRING but no use still errors.

1 Answers1

0

Try it with the following code:

switch (cell.getCellTypeEnum()) {
   case STRING:
      break;
   case NUMERIC:
      break;
   case BLANK:
      break;
   default:
      break;
}

getCellType is deprecated and shouldn´t be used anymore. See following post: Alternative to deprecated getCellType

enter image description here

juran.maurice
  • 149
  • 1
  • 1
  • 9