示例代码:
package com.lxl.poi;
import java.io.FileOutputStream;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args ) throws Exception
{
Workbook wk = new HSSFWorkbook();
FileOutputStream out = new FileOutputStream("e:\\poi_excel.xls");
wk.write(out);
out.close();
}
}