CodeGym /Courses /Java Multithreading /Big task: Writing an archiver in Java

Big task: Writing an archiver in Java

Java Multithreading
Level 7 , Lesson 15
Available

"Hi, Amigo!"

"Hello, Captain Squirrels, sir!"

"Ready for a new secret mission?"

"Of course, I'm ready, sir!"

"Then here's a file with instructions. Today we're going to develop a new kind of artificial intelligence. The human race needs our help. We must save people from destruction."

"But, sir! I can't open the file. I need an archiver."

"Really? Hmm... Then the salvation of mankind is postponed. Today, we'll write our own archiver."

Big task: Writing an archiver in Java - 1

"Captain, what about the people?"

"Nothing will happen to them. Contact Agent IntelliJ IDEA for your assignment. He'll give you all the instructions."

"May I proceed, sir?"

"Proceed."

16
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 1)
Archiver (part 1)
32
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 2)
Archiver (part 2)
16
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 3)
Archiver (part 3)
16
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 4)
Archiver (part 4)
8
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 5)
Archiver (part 5)
16
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 6)
Archiver (part 6)
8
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 7)
Archiver (part 7)
32
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 8)
Archiver (part 8)
32
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 9)
Archiver (part 9)
32
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 10)
Archiver (part 10)
32
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 11)
Archiver (part 11)
16
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 12)
Archiver (part 12)
32
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 13)
Archiver (part 13)
8
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 14)
Archiver (part 14)
32
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 15)
Archiver (part 15)
32
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 16)
Archiver (part 16)
32
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 17)
Archiver (part 17)
8
Task
Java Multithreading, level 7, lesson 15
Locked
Archiver (part 18)
Archiver (part 18)
Comments (13)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Jaime Padilla Level 41, Chandler, United States Expert
3 November 2023
From Quora: "In few words, 1 kilobyte contains 1000 bytes. Divide bytes by 1000 and you'll get kilobytes. Back in the day when computers weren't that powerful, 1 kilobyte was exactly 1024 bytes, but it seems people didn't like the number and decided that 1 kilobyte was equal to 1000 bytes to make things easier to remember. As time went by, the idea that 1 kb=1000 bytes grew in popularity and most people agree with it; on the other hand, there are still many who consider that 1 kb is 1024 bytes. In 1998, in order to stop the confusion, the International Electrotechnical Commission (IEC) and the National Institute of Standards and Time (NIST) created the unit “kibibyte (KiB).” Since that moment, a kibibyte is 1024 bytes and the older unit, the kilobyte (kB), equals to 1000 bytes. Even though this should have killed the confusion, it only made it worse." I am still confused, why did part 12 use 1024? If 1 byte is considered 1000kb in current times?
matemate123 Level 50, Kraków, Poland
27 June 2023
I think it could be useful, when after each part that code is updated by codegym, we could get our own code back and compare with clean code from mentor. Great Big Task, I like it a lot. Useable program.
Максим Василенко Level 44, Kiev, Ukraine
14 February 2023
How is this task related to multithreading?
Justin Smith Level 41, Greenfield, USA, United States
27 April 2022
This one is pretty difficult in places. But a lot of interesting things to learn about working with zip files. I am surprised, though, that Java does not simply provide built-in code to zip and unzip files. Also, this project was kind of weird in that it has nothing to do with multithreading at all.
Andrei Level 41
12 May 2021
Has anybody really understood the whole program? Or at one point, you started going with the flow of the requests because you lost track of what each method does and how everything connects...
Thành Black Level 49, Hanoi
21 November 2021
How are you now, I have many difficulties here >>
Shilpa nori Level 34, Rochester, United States
1 April 2021
Almost all the tasks are tough. Spent a lot of time and finished these, not sure i remember anything now . Feels great to move on
Denys Pits Level 41, Ukraine
27 February 2021
17 level: pass arguments like that Files.createTempFile(null, null);
Henrique Level 41, São Paulo, Brazil
12 August 2020
OMG why does it have to be so confusing? There's no help, so those who don't understand will just be stuck in some part forever, until someone good-hearted appears.
Vesa Level 41, Kaliningrad, Russia
2 June 2020
In part 8, before rewriting the main () method, you must remove the old code from this method.
Niladri pradhan Level 33, Mumbai, India
5 December 2019
I am not able to pass last condition of task 8.Could someone please help.
Juan Ma Level 1, Arauca, Colombia
20 April 2020
It may be late but try do{...}while() instead of while(){...}.