To use the partitioningBy Collector, you have to pass the Collectors.partitioningBy in the collect() method of…
Tag: functional programming
Reduce NullPointerExceptions with Optional in Java 8 & Beyond
"Billion Dollar Mistake?". NullPointerException is the most common and frequently appeared error compared to others, especially…
The Interface of Java and the Many Faces of It
Interface is an integral part of java and has become so powerful over the years, that…
Stream API: The Hero Without a Cape
The Stream API, included in Java 8, is utilised for processing collections of objects. Stream API…
Functional Interfaces To Become More Functional in Java
Using Functional interfaces provided by Java we can become more functional. And Knowing them would help…