public static File zip(File dir,String dest){
  File zippedFile=new File(dest + "/" + dir.getName()+ ".zip");
  zipTo(dir,zippedFile);
  return zippedFile;
}

public static File zip ( File dir , String dest ) { File zippedFile = new File ( dest + "/" + dir . getName ( ) + ".zip" ) ; zipTo ( dir , zippedFile ) ; return zippedFile ; }
zips the given directory " dir " into a zip file in " dest "
