I wanted to get the value of a Numeric cell as a simple string.
Suppose there the type of cell is numeric with value 90%
.
Now I cannot use cell.getStringCellValue()
as it will throw exception.
I also cannot use cell.getNumericCellValue()
as it will return me .9
and not 90%
.
I want to store in db which is of type varchar2, so I want the value in string only.
I cannot change the cell type in xls
as its the end user job, I have to handle this in code itself.
Also formatter does't work well as there could be different cell types in the xls...dd:mm,dd:mm:ss,formula etc.
All I want is that whatever the cell type is I need to get its value as simple String.