Java 8 tutorial 16 (Streams) – groupingBy, partitioningBy, counting, & mapping Collectors methods

Java 8 tutorial 16 (Streams) – groupingBy, partitioningBy, counting, & mapping Collectors methods


What is the collect method on the Stream interface? What is the static partitioningBy method on the Collectors interface? What is the static groupingBy method on the Collectors interface? What is the difference between the groupingBy and partitioningBy Collectors interface methods? What is the static counting method on the Collectors interface? What is the advantage of using the groupingBy over using the partitioningBy Collectors interface method? What is the static mapping method on the Collectors interface? What is the static toList method on the Collectors interface? What is the advantage of using the groupingBy over the partitioningBy Collectors interface methods? How to use static methods on a Java class without specifying the class name?

4 thoughts on “Java 8 tutorial 16 (Streams) – groupingBy, partitioningBy, counting, & mapping Collectors methods”

  1. technically very well performed tutorial! Focussed on helpful ways of coding, no time is wasted with typing errors. An outstanding example, thanks a lot!

  2. Java 8 tutorial 14 (Streams) – Ways of obtaining a Stream @ https://youtu.be/6TKDjfLGVNc

    Java 8 tutorial 15 (Streams) – map, filter, forEach, & toArray Stream methods @ https://youtu.be/mpLGGNWolnc

    Java 8 tutorial 16 (Streams) – groupingBy, partitioningBy, counting, & mapping Collectors methods @

    https://youtu.be/CaERsnos5p4

    Java 8 tutorial 17 (Streams) – toList, toSet, & toCollection Collectors methods @ https://youtu.be/Z_uFZfYxICw

    Java 8 tutorial 18 (Streams) – allMatch Stream method @ https://youtu.be/1a4CUPVR8m4

    Java 8 Tutorial 19 (Streams) – noneMatch, anyMatch Stream methods @ https://youtu.be/lPQswi-5krk

Leave a Reply

Your email address will not be published. Required fields are marked *