import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.FillPatternType;
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.VerticalAlignment;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.BorderStyle;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.util.WorkbookUtil;
import org.apache.poi.*;
import org.apache.poi.ss.util.CellRangeAddress;
import java.io.FileOutputStream;
public class Excel {
/**
* @param args
*/
public static void main(String[] args) {
Workbook workbook = new HSSFWorkbook();///1
Sheet sheet = workbook.createSheet("Eggs");///2
sheet.addMergedRegion(new CellRangeAddr
写入Excel数据,简单且只能练手
最新推荐文章于 2023-02-18 16:00:14 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)