日期:2014-05-20 浏览次数:20667 次
private static void readexcel(){
Workbook workbook = null;
try {
File f = new File("G:\\test.xls");
InputStream in = new FileInputStream(f);
workbook = Workbook.getWorkbook(in);
Sheet sheet = workbook.getSheet(0);
System.out.println(sheet.getName());
Sheet sheet2 = workbook.getSheet(1);
System.out.println(sheet2.getName());
} catch (Exception e) {
e.printStackTrace();
}
}