I am taking phone number from excel, using Apache POI.
System.out.println(
"---------->" + cell.getNumericCellValue() + "--" + (int) cell.getNumericCellValue()
);
sel.setContactno(String.valueOf(cell.getNumericCellValue()));
Output:
---------->8.902305623E9--2147483647
Exception is
java.lang.IllegalStateException: Cannot get a STRING value from a NUMERIC cell
How can I get the phone number properly?