CodeGym /Courses /Java Collections /Tasks | Level 6 | Lesson 10

Tasks | Level 6 | Lesson 10

Java Collections
Level 6 , Lesson 10
Available
16
Task
Java Collections, level 6, lesson 10
Locked
Mastering ClassLoader and Reflection
The Solution class constructor's parameter is the absolute path to a package. The package name may include the File.separator. In addition to compiled classes (.class), the package may have other files (for example: .java).
9
Task
Java Collections, level 6, lesson 10
Locked
Find the class by its description
Class description: 1. It implements the Queue interface. 2. It is used when working with threads. 3. Elements can only be taken from the queue after they have expired (their delay period has passed). 4. The head of the queue is the element that expires first.
32
Task
Java Collections, level 6, lesson 10
Locked
MyMultiMap
Amigo, sometimes Java's built-in collections aren't enough. When that's the case, you can use third-party implementations, such as Google Guava or Apache Commons, or you can implement your own data structure.
9
Task
Java Collections, level 6, lesson 10
Locked
Why doesn't the set contain an element?
Historians added several dates of past events to a special set in the initializeDates method. Later, they studied the historical documents more closely and more precisely calculated the time of the latest event lastDate.
9
Task
Java Collections, level 6, lesson 10
Locked
Find the class by its description
Class description: 1. The class is in the java.util.concurrent package. 2. It implements the BlockingQueue interface. 3. It is used when working with threads. 4. It is a blocking queue in which each add operation must wait for a corresponding delete operation on another thread and vice versa.
Comments (5)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Justin Smith Level 41, Greenfield, USA, United States
20 December 2022
IMO, MyMultiMap is much easier than the ClassLoader task, even though it's rated Hard and ClassLoader is rated Medium.
Senned Level 41, Azov, Russia
20 December 2019
For ClassLoader task use task3507 from last level. And parameter key in method getHiddenClassObjectByKey need cast toLowerCase too!
Marcin Olech Level 41, Kraków, Poland
16 January 2020
Have you done 4th? (MyMultiMap) Got some problems:(
Senned Level 41, Azov, Russia
17 January 2020
Yes, u can messaging me
Justin Smith Level 41, Greenfield, USA, United States
15 December 2022
One other thing that really messed me up for a while and I just figured out now... the packageName string is going to contain "%20" escape sequence characters for wherever there are spaces in folder names (such as "Intellij IDEA Community Edition"). Unfortunately these escape sequences don't work in reverse when you try to create a file object from the packageName. You have to replace all of them with spaces.