if (row.getCell(j).getCellType() == Cell.CELL_TYPE_NUMERIC) {
DecimalFormat df = new DecimalFormat("#");
rowTemp.createCell(j).setCellValue(df.format(row.getCell(j).getNumericCellValue()));
}
else
{
rowTemp.createCell(j).setCellValue(row.getCell(j).getStringCellValue());
}
rowTemp.getCell(j).setCellStyle(cellStyle);
java.lang.IllegalStateException: Cannot get a numeric value from a text cel
最新推荐文章于 2025-06-06 16:05:58 发布