The following code, how to add a file to a zip using java:
String source = "C:/Users/XXXXX/Desktop/Helicopter.zip";
try {
ZipFile zipFile = new ZipFile(source);
ZipParameters parameters = new ZipParameters();
zipFile.addFile(new File("C:/Users/XXXXXX/Desktop/HELLO_HELICOPTER.txt"), parameters);
} catch (net.lingala.zip4j.exception.ZipException e) {
e.printStackTrace();
}
How am I able to add the file in a specific folder in this zip-archive?