code: public static void compress(String fileName, String compressedFileName, String password) {
  		try {
  			ZipParameters zipParameters = new ZipParameters();
  			zipParameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);
  			zipParameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_ULTRA);
  			if (password != null) {
  				zipParameters.setEncryptFiles(true);
  				zipParameters.setEncryptionMethod(Zip4jConstants.ENC_METHOD_AES);
  				zipParameters.setAesKeyStrength(Zip4jConstants.AES_STRENGTH_256);
  				zipParameters.setPassword(password);
  			}
  			String destinationZipFilePath = compressedFileName;
  			ZipFile zipFile = new ZipFile(destinationZipFilePath);
  			zipFile.addFile(new File(fileName), zipParameters);
  		} catch (ZipException e) {
  			JKExceptionUtil.handle(e);
  		}
  	}
docs: Compress.
  
  @param fileName           the file name
  @param compressedFileName the compressed file name
  @param password           the password