I have a Map, where the "value" is a List of projects:
Map<User, List<Project>> projectsMap = ...
I want to extract from the map the projects but in only and just 1 List of projects:
I've already seen answers but they don't apply to my case. I don't want this result:
List<List<Project>> theValueOfTheMap;
The result I want is:
List<Project> projects = ... // All the project in the value's map
How can I achieve this using JAVA 8 Streams? Thanks. Leonardo.