Java读取excel内容:
public class excel {
public static void main(String[] args) throws BiffException, IOException {
// TODO Auto-generated method stub
Workbook book = Workbook.getWorkbook(new File(
"C://Test.xls"));
Sheet sheet = book.getSheet(0);
List list = new ArrayList();
for (int k = 0; k
for (int j = 0; j
Cell cell = sheet.getCell(j, k);// 列,行
Cell keycell = sheet.getCell(j, 1);
String Content = cell.getContents();
list.add(Content);
}
}
for (String string : list) {
System.out.println(string);
}
book.close();
}
}
Java导出excel:
String filePath = "D:\\java\\myeclipse\\goodtaste_system"
+ "/upload/OrderRecord" + dateTime + ".xls