Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot find symbol variable Cell.CELL_TYPE_STRING in poi-4.0.1

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()){
}
like image 278
sj_abaquita Avatar asked Jan 31 '19 08:01

sj_abaquita


People also ask

How do I fix error Cannot find symbol?

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.

Why is Java saying Cannot find symbol?

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.

What does getCellType return?

getCellType. Return the cell type.


1 Answers

switch(cell.getCellType()) {
    case STRING:
        System.out.print(cell.getStringCellValue())
}
like image 73
Manish Patil Avatar answered Oct 01 '22 21:10

Manish Patil