Guys any help I can get here I will appreciate it. I keep getting this error message not sure what's going on. "both Cell type numeric and string cannot be resolved"
while (cellIterator.hasNext()){
final Cell cell = cellIterator.next();
switch (cellIndex)
{
case 0:
if(cell.getCellType() == Cell.CELL_TYPE_NUMERIC) {
newStudent.studentId = (int)cell.getNumericCellValue();
cellIndex++;
}
break;
case 1:
if(cell.getCellType() == Cell.CELL_TYPE_STRING) {
newStudent.major = cell.getStringCellValue();
cellIndex++;
}else {
newStudent.major = null;
}
break;
case 2:
if(cell.getCellType() == Cell.CELL_TYPE_STRING) {
newStudent.gender = cell.getStringCellValue();
cellIndex++;
}else {
newStudent.gender = null;
}
break;
}
}