java 8 group a collections by 2 property

Solutions on MaxInterview for java 8 group a collections by 2 property by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "java 8 group a collections by 2 property"
Dot
23 Oct 2020
1Map<String, Map<BlogPostType, List>> map = posts.stream()
2  .collect(groupingBy(BlogPost::getAuthor, groupingBy(BlogPost::getType)));
3