在使用公式格式解析列中值的 excel 文件时,我收到 null。这是我的代码:
Cell cell = row.getCell(i);
CellValue cellValue = evaluator.evaluate(cell);
switch(cell.getCellType())
{
case Cell.CELL_TYPE_NUMERIC:
returnedMap.put(arrayForMappingNames[index], ""+cell.getNumericCellValue());
break;
case Cell.CELL_TYPE_STRING:
returnedMap.put(arrayForMappingNames[index], cell.getStringCellValue());
break;
case Cell.CELL_TYPE_FORMULA :
returnedMap.put(arrayForMappingNames[index], cellValue.getStringValue());
break;
default :
returnedMap.put(arrayForMappingNames[index], ExcellUtil.DEFAULT_VALUE);
}
 有只小跳蛙
有只小跳蛙 
					芜湖不芜
 随时随地看视频慕课网APP
随时随地看视频慕课网APP
相关分类