java 将多个文件打包成一个zip的代码如下:ZipOutputStream out=new ZipOutputStream(new FileOutputStream(zipFileName)); for(int i=0;i String filename = (String)fileList.get(i); File file = new File(filename); zip(out,file); } out.close();