16
Compito
Java Collections,  livello 5lezione 8
Bloccato
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.
16
Compito
Java Collections,  livello 5lezione 8
Bloccato
Wildcards
Rewrite the generic types in the add method using wildcards. Don't change the logic. Don't leave commented code.
16
Compito
Java Collections,  livello 5lezione 8
Bloccato
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).
8
Compito
Java Collections,  livello 5lezione 8
Bloccato
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.