@@ -0,0 +1,1948 @@
+%0A//Imports%0A//Make sure you have the POI Jar library in your build path%0Aimport java.io.File;%0Aimport java.io.FileInputStream;%0Aimport java.io.IOException;%0Aimport org.apache.poi.hssf.usermodel.HSSFCell;%0Aimport org.apache.poi.hssf.usermodel.HSSFRow;%0Aimport org.apache.poi.hssf.usermodel.HSSFSheet;%0Aimport org.apache.poi.hssf.usermodel.HSSFWorkbook;%0A%0Apublic class readExcel%0A%0A%7B%0A%0Aprivate static void readFile(String path) throws IOException%0A  %7B%0A  //Path to the excel file%0A%09File datafile=new File(path);%0A%09//A File Input Stream to read the data%0A%09FileInputStream fis=new FileInputStream(datafile);%0A%09//We create a workbook which represents the excel file%0A%09HSSFWorkbook book = new HSSFWorkbook(fis);%0A%09//Next a sheet which represents the sheet within that excel file%0A%09HSSFSheet sheet= book.getSheet(%22Details%22);%0A%09//No of rows in the sheet%0A%09int rowNum=sheet.getLastRowNum()+1;%0A%09//No of columns in the sheet%0A%09int colNum=sheet.getRow(0).getLastCellNum();%0A%09//A Two dimensional array of Strings which represents the data in the sheet  %0A%09String %5B%5D%5B%5D data = new String%5BrowNum%5D%5BcolNum%5D;%0A%09%0A%09for(int i=0;i%3CrowNum;i++)%0A%09%7B%0A%09//Get the row%0A%09HSSFRow row=sheet.getRow(i);%0A%09for(int j=0;j%3CcolNum;j++)%0A%09%7B%0A%09//Get the columns or cells for the first row and keep looping for the other rows%0A%09HSSFCell cell=row.getCell(j);%09%0A%09//Make a call to the method cellToString which actually converts the cell contents to String%0A%09String value=cellToString(cell);%0A%09data%5Bi%5D%5Bj%5D=value;%0A  //Here is where you write the logic to handle the data.I am just printing out the contents here.%0A%09System.out.println(%22The value is %22 +value);%0A%09%7D%0A%09%7D%0A%09%7D%0A%09%0A%09private static String cellToString(HSSFCell cell) %0A%09%7B%0A%09%09int type;%0A%09%09Object result;%0A%09%09type=cell.getCellType();%0A%09%09%0A%09%09switch(type)%0A%09%09%7B%0A%09%09case 0:%0A%09%09%09result=cell.getNumericCellValue();%0A%09%09%09break;%0A%09%09%09%0A%09%09case 1:%0A%09%09%09result=cell.getStringCellValue();%0A%09%09%09break;%0A%09%09%09%0A%09%09default:%0A%09%09%09throw new RuntimeException(%22Unknown Cell Type%22);%0A%09%09%7D%0A%09%09%0A%09%09return result.toString();%0A%09%7D%0A%09%0A%7D%0A

Create readExcel.java