Can someone answer me with this error, I am using poi-4.0.1
error: cannot find symbol
symbol: variable CELL_TYPE_STRING
location: interface Cell
And this is my code:
if(Cell.CELL_TYPE_STRING == cell.getCellType()){
}
In the above program, "Cannot find symbol" error will occur because “sum” is not declared. In order to solve the error, we need to define “int sum = n1+n2” before using the variable sum.
Misspelled method name Misspelling an existing method, or any valid identifier, causes a cannot find symbol error. Java identifiers are case-sensitive, so any variation of an existing variable, method, class, interface, or package name will result in this error, as demonstrated in Fig.
getCellType. Return the cell type.
switch(cell.getCellType()) {
case STRING:
System.out.print(cell.getStringCellValue())
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With