创建一个简单的实列
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(); } }
原文地址:https://www.cnblogs.com/nidegui/p/11038193.html
时间: 2024-10-28 15:41:51