SKSuyash Kejriwalinsuyashkejriwal.hashnode.dev·Mar 4, 2023 · 3 min readJava Streams - map() vs flatMap()Introduction In this block, we will learn about map and flatMap methods in Java streams API. Both are very useful intermediate methods of Java 8, to perform transformation operations on a list. map() method used for transformation (e.g. converting l...00
SKSuyash Kejriwalinsuyashkejriwal.hashnode.dev·Feb 18, 2023 · 2 min readHow to Sort Map using Streams APIIntroduction Sorting a map of objects is a very common problem faced in Java. In this article, we will learn how to sort maps traditionally and then optimize them using Java 8 streams API. Traditional Approach For sorting a map using the traditional ...00
SKSuyash Kejriwalinsuyashkejriwal.hashnode.dev·Feb 18, 2023 · 2 min readHow to Sort List Using Streams APIIntroduction Sorting a list of objects is a very common problem faced in Java. In this article, we will learn how to sort list traditionally and then optimize it using Java 8 streams API. Traditional Approach For sorting a list using the traditional ...00
SKSuyash Kejriwalinsuyashkejriwal.hashnode.dev·Feb 5, 2023 · 2 min readJava Streams APIIntroduction In this post, we will learn about Java Streams API and implement for Each and filter methods What are Java 8 Streams A Stream is a sequence of objects that support various methods which can be pipelined to produce the desired results. A ...00
SKSuyash Kejriwalinsuyashkejriwal.hashnode.dev·Feb 5, 2023 · 2 min readPredefined Functional InterfacesIntroduction In the last blog, we learned about lambda expressions and functional interfaces. In this post, we will learn about predefined Functional Interfaces. Predefined Functional Interfaces Consumer FI Consumer is an inbuilt functional interfa...00