collection

Java Stream converter Map to List

I have this object filled in: Map<String, List<LogLine>> logMap = new TreeMap<>(); And after making ... )); How can I create only one list with all loglines using stream? I tried to use flatMap, but the compiler does not let.

Question about exercise with abstract class in Java

I would like to ask for your help again in this exercise. This time using the abstract class. Create an abstract class Funci ... rio()); } } } My doubt is would be how to use this Set employees to print the name and salary of employees.

Sort items from a Collection from a predefined value

I have a Collection from Eloquent and would like to sort it by two fields at once being one of them a predefined value. Ex.: ... ories with slug = "solicitacoes" was in alphabetical order, the problem is that the aforementioned were not at the beginning.

Sort using tiebreaker criteria

I need to sort a list of objects with the following criteria: higher average proficiency levels in each of the technical ... only one object that can remain after all the eliminations? Is it possible to order only once to get the" biggest " element?