gpt4 book ai didi

java - 在 poi-4.0.1 中找不到符号变量 Cell.CELL_TYPE_STRING

转载 作者:行者123 更新时间:2023-12-01 13:46:15 25 4
gpt4 key购买 nike

有人可以用这个错误回答我吗,我正在使用 poi-4.0.1

error: cannot find symbol
symbol: variable CELL_TYPE_STRING
location: interface Cell

这是我的代码:
 if(Cell.CELL_TYPE_STRING == cell.getCellType()){
}

最佳答案

switch(cell.getCellType()) {
case STRING:
System.out.print(cell.getStringCellValue())
}

关于java - 在 poi-4.0.1 中找不到符号变量 Cell.CELL_TYPE_STRING,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54456443/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com