Question: Section Question #1 Revisit The given snippet louds a workbook. Determine the correct code to show the value of the second cell of the second

Section Question #1 Revisit The given snippet louds a workbook. Determine the correct code to show the value of the second cell of the second row of the first sheet of the workbook from test.xlsx 1 File filesrept new File("filepath/test.xlsx"): 2 FileInputStream Idfile -new FileInputStream(filesrept); 3 XSSFWorkbook wrkbknew XSSFWorkbook (idfile); 2 Choose the best option 1 XSSFSheet wrksht1= wrkbk.getSheetAt(e): 2 System.out.println(wrksht1.getRow(1).getCell(1).getStringCellValue()); 1 XSSFSheet wrksht1- wrkbk.getSheetAt(): 2 System.out.println(wrksht1.getRow(1).getCe11(1).getCellValue(1)): O 1 XSSFSheet wrksht1- getSheetAt(0); 2 System.out.println(wrkbk.wrksht1.getRow(1).getCell(1).getStringCellValue() 1 XSSFSheet wrksht1= wrkbk.getSheetAt(): 2 System.out.println(wrksht1.getCell(1).getRow(1).getStringCellValue(1))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
