I\'m trying to consume data from a spreadsheet in Excel, but always of this error, already tried formatting the worksheet to text and number and still the error persists.
CellType cell = row.getCell(j).getCellTypeEnum(); switch(cell) { case NUMERIC: intVal = row.getCell(j).getNumericCellValue(); System.out.print(intVal); break; case STRING: stringVal = row.getCell(j).getStringCellValue(); System.out.print(stringVal); break; }