Omar Al Kababji wrote:PLEASE ASK GOOGLE BEFORE ASKING PEOPLE.
zipping a file is so common that its impossible that you could have difficulties to find a way on the net the tells you how to do it.
Just asking for a simple hint or clues of how to get this job done. That's what the net is for. I'm not asking to get spoon fed.
Omar said that a bit too harshly, but I used "java zip tutorial" as my Google keywords and the first link it returned was a Sun tutorial about how to do that, complete with example code. Yes, that is what the net -- and Google -- are for.
You know it is dark times when the trees riot. I think this tiny ad is their leader: