6/30/2023 0 Comments Jxl api example![]() The sheet is a "WritableSheet", but this is an interface! And seeing the api, there are no implementing classes. And until this, I'm there.īut, then, what am I doing in the second instruction? I'm creating the workbook using the static method provided by Workbook that is a superclass of WritableWorkbook. That is, the workbook object was previously instantiated and is a WritableWorkbook object. WritableSheet sheet = workbook.createSheet("first sheet", 0) So I was studying a sample code of jxl api, to write and read an excel file, and I arrived to this point: workbook = Workbook.createWorkbook(new File("/home/me/workspace/files/output.xls")) ![]() Well I know that an interface 'provides' only abstract methods to be implemented by the concrete subclasses. I'm quite new to Java and am stuck with this, please.
0 Comments
Leave a Reply. |