【发布时间】:2023-04-02 22:05:01
【问题描述】:
我正在尝试从如下所示的 excel 文件中读取列值
这是我读取excel文件的代码
Xls_Reader d = new Xls_Reader("C:\\TestData.xlsx");
System.out.println(d.getRowCount("sheetname"));
String s1 = String.valueOf(d.getCellData("TC03", "Contract_ID",3));
s1 =(int)Double.parseDouble(s1) + "";
System.out.println(s1);
在这段代码中,我可以获得一行的记录。但我需要打印所有 Row 值。 请提出建议。
【问题讨论】: