I need to read xls or xlsx sheet.
successfully I read the sheet, but it returning decimal value instead of string (eg: for 3 -- it is returning 3.0).
I need to read the cell
switch (cell.getCellType()) {
case STRING:
String c = cell.getStringCellValue();
break;
case NUMERIC:
int n = (int) cell.getNumericCellValue();
break;
case BOOLEAN:
boolean b = cell.getBooleanCellValue();
break;
default :
}