Created
April 13, 2010 08:01
-
-
Save taka2/364409 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.*; | |
| import jxl.*; | |
| import jxl.write.*; | |
| public class test | |
| { | |
| public static void main(String[] args) throws Exception | |
| { | |
| System.out.println(new java.util.Date()); | |
| WritableWorkbook workbook = Workbook.createWorkbook(new File("filename.xls")); | |
| WritableSheet sheet = workbook.createSheet("sheet1", 0); | |
| for(int i=0; i<10000; i++) | |
| { | |
| for(int j=0; j<100; j++) | |
| { | |
| jxl.write.Number number = new jxl.write.Number(j, i, i*j); | |
| sheet.addCell(number); | |
| } | |
| } | |
| workbook.write(); | |
| workbook.close(); | |
| System.out.println(new java.util.Date()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment