Taking the comfort of streams ahead Java 12 has added a new collector feature that merges the results of 2 collectors. Let’s say for an example that you wanted to extract 2 different results from the very same Stream. We would have to create a separate stream and then extract those results individually and move […]