I have a sheet,it includes: number,name,pass,access,result. I want get name,pass,result to testweb, I try writing it but i get this error :
String user[],pass[],result[];
Workbook workbook = WorkbookFactory.create(new File(pathFile));
Sheet sheet = workbook.getSheetAt(0);
workbook.close();
if (sheet != null) {
int rowindex =0;
for(Row row : sheet) {
   for(Cell cell:row){
      int i=cell.getColumnIndex();
      if(i==1) user[rowindex]=cell.toString();
      if(i==2) pass[rowindex]=cell.toString();
      if(i==4) result[rowindex]=cell.toString();
      }
      rowindex++;
  }
} else {
    System.out.println("Sheet was not found");
  }    
 
    