在使用java编写读取excel文件的时候报了下面这个错:
Exception in thread "main" java.lang.IllegalStateException: Cannot get a formula value from a text cell
at org.apache.poi.xssf.usermodel.XSSFCell.typeMismatch(XSSFCell.java:845)
at org.apache.poi.xssf.usermodel.XSSFCell.getCellFormula(XSSFCell.java:360)
at com.jp.ReadExcelUtils.readExcelTitle(ReadExcelUtils.java:86)
at com.jp.ModifyExcelContent.main(ModifyExcelContent.java:10)
row.getCell(i).setCellType(Cell.CELL_TYPE_STRING);
title[i] = row.getCell(i).getStringCellValue();