public void test() throws BiffException, IOException{
String fileName = "C:/Users/Administrator/Desktop/新建文件夹 (2)/2.xls"; // Excel文件所在路径
File file = new File(fileName); // 创建文件对象
Workbook wb = Workbook.getWorkbook(file); // 从文件流中获取Excel工作区对象(WorkBook)
Sheet sheet = wb.getSheet(0); // 从工作区中取得页(Sheet)
for (int i = 0; i < sheet.getRows(); i++) { // 循环打印Excel表中的内容
String type_1 = sheet.getCell(0, i).getContents() ;
}
}