java操作Excel的poi基础语法
2020-12-13 02:27
标签:port apach ring str java 语法 pack book throw 创建一个简单的实列 java操作Excel的poi基础语法 标签:port apach ring str java 语法 pack book throw 原文地址:https://www.cnblogs.com/nidegui/p/11038193.htmlpackage 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();
}
}