public static void main(String[] args) throws IOException {
		// file names : dealreport.txt and Serialized_Deals.dat
		String fileNames[] = {"dealreport.txt", "Serialized_Deals.dat"};
		try {
			ZipOutputStream out_zip = new ZipOutputStream(
					new BufferedOutputStream(
							new FileOutputStream("out_zip.zip")));
			
			for(String fileName : fileNames ){
				BufferedInputStream bf_str = new BufferedInputStream(new FileInputStream(fileName));

				out_zip.putNextEntry(new ZipEntry(fileName));
				int in_int = 0;
				while( (in_int = bf_str.read()) != -1 ){
					out_zip.write(in_int);
				}
				bf_str.close();
			}

			out_zip.close();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}