This is my code to read excel file and you can loop for many sheet. But you must use plug-in jxl. Just download and import to lib. This my link can hlep you : http://www.mediafire.com/?fr1xkgdtx49awa8 .Sorry for bad english.
public List<Result> read(File inputWorkbook) throws IOException {
List<Result> list = new ArrayList<Result>();
Workbook w;
try {
w = Workbook.getWorkbook(inputWorkbook);
// Get the first sheet
Sheet sheet = w.getSheet(0);
// Loop over first 10 column and lines
for (int j = 1; j < sheet.getRows(); j++) {
Result rs= new Result();
Cell cell0 = sheet.getCell(0, j);
for (int i = 0; i < sheet.getColumns(); i++)
{
Cell cell = sheet.getCell(i, j);
CellType type = cell.getType();
if (cell.getType() == CellType.LABEL) {
System.out.println("I got a label " + cell.getContents());
}
if (cell.getType() == CellType.NUMBER) {
System.out.println("I got a number " + cell.getContents());
}
}
}
} catch (Exception e) {
e.printStackTrace();
}
return list;
}