Is there an easy way to recursively ZIP a directory that may or may not contain any number of files and any number of levels of subdirectories?
You can use the Java API Specification and How do you recursively traverse through file folders?.