答案 0 :(得分:1)
您正在获取单元格对象。进行空检查并访问单元格的值 - 如下所示:
Cell cell = rowAmt.getCell(0);
if (cell != null) {
System.out.println(cell.getStringCellValue());
/*
* for numbers: cell.getNumericCellValue();
* for booleans: cell.getBooleanCellValue();
*/
}