undefined
16
Task
Java Collections, level 5, lesson 8
Locked
List to Map
Implement the ConvertibleUtil class's convert method. It must return a map whose values are the elements of the passed list, and whose keys are objects obtained by calling the getKey interface method.
undefined
16
Task
Java Collections, level 5, lesson 8
Locked
Wildcards
Rewrite the generic types in the add method using wildcards. Don't change the logic. Don't leave commented code.
undefined
16
Task
Java Collections, level 5, lesson 8
Locked
Entry prohibited!
Analyze the classes in the task. Two houses are created in the main method: one for cats and one for dogs. However, currently, when a dog enters the cats' house, a conflict occurs and all of the cats are forced to leave the house (checkConflicts method).
undefined
8
Task
Java Collections, level 5, lesson 8
Locked
Object generator
Analyze the classes at hand. The Generator class's newInstance method must create an Event for each new call, but the compiler currently complains about the syntax. Redo the Generator class to make the object creation work.