Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在poi-4.0.1中找不到符号变量Cell.Cell\u TYPE\u字符串_Java_Apache Poi - Fatal编程技术网

Java 在poi-4.0.1中找不到符号变量Cell.Cell\u TYPE\u字符串

Java 在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

有人能回答我这个错误吗?我正在使用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
代替
CellType.STRING
switch(cell.getCellType()) {
    case STRING:
        System.out.print(cell.getStringCellValue())
}