创建一个简单的实列

package com.java.poi;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;

import java.io.FileOutputStream;

/**
 * @author nidegui
 * @create 2019-06-17 9:26
 */
public class Test1 {

    public static void main(String[] args) throws Exception {
        Workbook wb= new HSSFWorkbook(); //实列,新建一个工作簿
        FileOutputStream fileOutputStream=new FileOutputStream("E:\\poi你好.xls");
        wb.write(fileOutputStream);
        fileOutputStream.close();
    }
}

  

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2021-04-15
  • 2021-04-25
  • 2021-04-30
  • 2021-08-12
  • 2021-11-08
  • 2021-06-16
猜你喜欢
  • 2022-12-23
  • 2021-09-01
  • 2021-07-06
  • 2021-08-23
  • 2022-12-23
  • 2022-01-07
  • 2021-05-22
相关资源
相似解决方案