i have an excel to upload which has a column material id.That column contains alphanumeric values,But when i am trying to upload this file value the uploaded column in the jsp page is taking an unexpected E and also taking decimal of that number i am using apache POI to parse the excel.Here i have done so far
while(rowIterator.hasNext()) {
boolean isValidentry=true;
System.out.println("Row number =" + (i+1));
Row row = rowIterator.next();
CategoryObject categoryObject = new CategoryObject();
categoryObject.setCode("");
if(row.getCell(0)!=null && !"".equals(row.getCell(0).toString().trim())){ //Part Number
System.out.println("Get Cell 0 >>>>" +row.getCell(0).toString());
categoryObject.setCode(row.getCell(0).toString().trim());
The problem is that I'm getting 3.0E9
where I need 3000000000
.
categoryObject.setCode is taken as String field.This column is responsible for the material id.