[一]初识Poi

时间:2022-02-03 17:31:00

示例代码:

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();
}
}