Bootstrap

java合并excel文件_合并多个excel文件为一个excel文件

packagecom.fc.htgl.testcases;importjava.io.File;importjava.io.FileInputStream;importjava.io.FileNotFoundException;importjava.io.FileOutputStream;importjava.io.IOException;importjava.io.InputStream;importjava.util.regex.Matcher;importjava.util.regex.Pattern;importorg.apache.poi.hssf.usermodel.HSSFRow;importorg.apache.poi.hssf.usermodel.HSSFSheet;importorg.apache.poi.hssf.usermodel.HSSFWorkbook;importorg.apache.poi.hssf.util.Region;importorg.apache.poi.ss.formula.functions.Now;importorg.apache.poi.ss.usermodel.Workbook;importorg.omg.CosNaming.NamingContextExtPackage.StringNameHelper;public classDevDemo {public static void main(String[] args) throwsFileNotFoundException, IOException {long startTime = System.currentTimeMillis(); //获取开始时间

String fromPath = "exceldoc/result";//excel存放路径

String toPath = "exceldoc/test/";//保存新EXCEL路径//新的excel 文件名

String excelName = "汇总";//创建新的excel

HS

;