undefined

Tasks | Level 7 | Lesson 6

Java Collections
Level 1 , Lesson 6
Available

"Hi, Amigo!" I came up with an interesting task for you."

"It can only be completed in IntelliJ IDEA. Take a look at these interesting conditions…"

undefined
28
Task
Java Collections, level 1, lesson 6
Locked
Adding a file to an archive
The main method accepts a list of arguments. The first argument is the full path to the fileName file. The second argument is the path to a ZIP file. Add the fileName file to the archive inside the "new" directory.
Comments (11)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Isma Level 33, Madrid, Spain
16 July 2021
This link may help to solve this task: https://stackabuse.com/working-with-zip-files-in-java#keyjavaclassesforworkingwithziparchives
Rom Level 26, Paris, France
9 March 2021
the worst task I think 😵😵 (for the moment, certainly😅)
BlueJavaBanana Level 37
27 December 2020
Helpful links: https://mkyong.com/java/how-to-compress-files-in-zip-format/ https://mkyong.com/java/how-to-decompress-files-from-a-zip-file/
Ruslan Skaldin Level 28, Tashkent, Uzbekistan
30 November 2020
The most problem was with reading all data from the input zip file. Tricky task
Armand Karabou Level 41, Dakar, France
7 September 2020
I don't understand the need to copy content of zip somewhere and copy it back after
Baurzhan Konurbayev Level 40, United States
20 August 2020
There is a typo Tasks | Level 7 | Lesson 6 It's level 1
Senned Level 41, Azov, Russia
11 November 2019
If you use HashMap<ZipEntry,...> for saving data, when you will put data in new archive it must be: zipOutputStream.putNextEntry(new ZipEntry(entry.getKey().getName()));
Ewerton Level 30, Belo Horizonte, Brasil
8 July 2019
I don't like compressed files.