code: public static void zip(File destination, File[] source)
              throws FileNotFoundException, IOException {
          FileOutputStream dest = new FileOutputStream(destination);
          ZipOutputStream zout =
                  new ZipOutputStream(new BufferedOutputStream(dest));
          for (File element : source) {
              zip(null, element, zout);
          }
          zout.close();
      }
docs: Create a zip file.
  
  @param destination
  The zip file to create.
  @param source
  The File array to be zipped.
  @throws FileNotFoundException
  @throws IOException