Reputation: 73
import java.io.File.*;
import java.util.Date;
import jxl.*;
import jxl.read.biff.File;
import jxl.write.*;
public class Excela {
public static void main(String[] args) {
WritableWorkbook workbook = Workbook.createWorkbook(new File("output.xls"));
}
}
i run this code in but it gives following error
Multiple markers at this line
- The method createWorkbook(File) in the type Workbook is not applicable for the arguments (File)
- The constructor File(String) is undefined
Upvotes: 0
Views: 325
Reputation: 69440
You have to import File
without asterix:
import java.io.File;
and remove import jxl.read.biff.File;
Upvotes: 1