我正在尝试运行以下代码,但发生错误,我提到的文件名出现在给定路径上。
public class DataDriventc {
public static void main(String []args) throws BiffException, IOException{
File f = new File("C:/Users/Avnish/Desktop/Input.xlsx");
Workbook w = Workbook.getWorkbook(f);
Sheet s = w.getSheet("Sheet1");
int columns = s.getColumns();
int rows = s.getRows();
System.out.println(columns + "," + rows);
}
}
答案 0 :(得分:0)