@@ -0,0 +1,1415 @@
+package utility;%0A%0Aimport java.io.File;%0Aimport java.io.FileInputStream;%0Aimport java.io.IOException;%0Aimport org.apache.poi.hssf.usermodel.HSSFWorkbook;%0Aimport org.apache.poi.ss.usermodel.Sheet;%0Aimport org.apache.poi.ss.usermodel.Workbook;%0Aimport org.apache.poi.xssf.usermodel.XSSFWorkbook;%0A%0Apublic class ExcelUtils %7B%0A%09public Sheet readExcel(String filePath,String fileName,String sheetName) throws IOException%7B%0A%09    //Create a object of File class to open xlsx file%0A%09    File file = new File(filePath+%22%5C%5C%22+fileName);%0A%09    //Create an object of FileInputStream class to read excel file%0A%09    FileInputStream inputStream = new FileInputStream(file);%0A%09    Workbook Workbook = null;%0A%09    //Find the file extension by spliting file name in substing and getting only extension name%0A%09    String fileExtensionName = fileName.substring(fileName.indexOf(%22.%22));%0A%09    //Check condition if the file is xlsx file%0A%09    if(fileExtensionName.equals(%22.xlsx%22))%7B%0A%09    //If it is xlsx file then create object of XSSFWorkbook class%0A%09    Workbook = new XSSFWorkbook(inputStream);%0A%09    %7D%0A%09    //Check condition if the file is xls file%0A%09    else if(fileExtensionName.equals(%22.xls%22))%7B%0A%09        //If it is xls file then create object of XSSFWorkbook class%0A%09        Workbook = new HSSFWorkbook(inputStream);%0A%09    %7D%0A%09    //Read sheet inside the workbook by its name%0A%09    Sheet Sheet = Workbook.getSheet(sheetName);%0A%09     return Sheet;   %0A%09    %7D%0A%7D%0A

Create ExcelUtils.java