Stream API The Hero Without a Cape

Stream API: The Hero Without a Cape

Hey Tea Lovers! In this post, we will be talking about an unsung hero of the Java world, the Stream API which was added to Java 8 and has changed the way we do programs in java and how! It added neatness as well as made the program more readable. It helps you do functional programming in Java. Without any further ado, let us read more about this jewel. What is Stream API The Stream API, included in Java 8, is utilized for processing聽collections of objects. It is the flow of Objets on which various methods get applied in the pipeline to have the result. Simply put, it flows through the given聽Collection<Object>聽and applies the different methods on the聽Object聽to aggregate them into the desired result without affecting the original聽Object. ...

May 11, 2020 路 9 min 路 Imran Shaikh
Functional Interfaces To Become More Functional in Java

Functional Interfaces in Java

Hey! tea lovers. This post is about Java鈥檚 functional interfaces. We will talk about the basic ones briefly. These functional interfaces are used by Stream API heavily, so knowing them will give you a huge advantage. Not just streams you can use it anywhere. Prerequisites for Functional Interfaces Not much, Just make sure the concept of functional interfaces and lambdas are clear. You can find the code on GitHub here or the full project here. And yes fill your cup of tea to sip and learn with me. ...

May 9, 2020 路 6 min 路 Imran Shaikh