如果您更换
//Update the value of cellcell = sheet.getRow(row).getCell(col);cell.setCellValue("Pass");用
//Retrieve the row and check for nullHSSFRow sheetrow = sheet.getRow(row);if(sheetrow == null){ sheetrow = sheet.createRow(row);}//Update the value of cellcell = sheetrow.getCell(col);if(cell == null){ cell = sheetrow.createCell(col);}cell.setCellValue("Pass");会工作的!



