CodeGym /Java Course /Java Collections /Tasks | Level 7 | Lesson 6

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…"

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 (12)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Максим Василенко Level 44, Kiev, Ukraine
10 March 2023
Is this part of java course on codegym is very difficult just for me? It seems that in articles you have only the alphabet, and in tasks you have to create your own book.
Isma Level 41, Madrid, Spain
16 July 2021
This link may help to solve this task: https://stackabuse.com/working-with-zip-files-in-java#keyjavaclassesforworkingwithziparchives
Romain Level 26, Paris, France
9 March 2021
the worst task I think 😵😵 (for the moment, certainly😅)
MaGaby2280 Level 41, Guatemala City, Guatemala
12 May 2021
😂😂😂 There are worse ones
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 33, 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
Dyrits Level 22
11 November 2020
It is very confusing. Why not just adding the new file? And even if copying it, why do we need to store it somewhere else first?
Jurij Thmsn Level 29, Flensburg, Germany
17 May 2021
did you find the answer?
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.