Java 在poi-4.0.1中找不到符号变量Cell.Cell\u TYPE\u字符串
有人能回答我这个错误吗?我正在使用poi-4.0.1Java 在poi-4.0.1中找不到符号变量Cell.Cell\u TYPE\u字符串,java,apache-poi,Java,Apache Poi,有人能回答我这个错误吗?我正在使用poi-4.0.1 error: cannot find symbol symbol: variable CELL_TYPE_STRING location: interface Cell 这是我的代码: if(Cell.CELL_TYPE_STRING == cell.getCellType()){ } CellType.String谢谢@XtremeBaumer问题解决了!对于@XtremeBaumer的注释,使用CellType.STRING代替Ce
error: cannot find symbol
symbol: variable CELL_TYPE_STRING
location: interface Cell
这是我的代码:
if(Cell.CELL_TYPE_STRING == cell.getCellType()){
}
CellType.String
谢谢@XtremeBaumer问题解决了!对于@XtremeBaumer的注释,使用CellType.STRING
代替CellType.STRING
switch(cell.getCellType()) {
case STRING:
System.out.print(cell.getStringCellValue())
}