Java 8 Lambda expressions

Java 8 – Lambda expressions

Let us look at lambda expressions, which is one of the most important features introduced in java 8. Before we look at lambda expressions, let us first understand the functional interfaces and anonymous classes. What is functional interface? Functional interface means an interface that has exactly one abstract method. They have only one functionality to […]

Read More

Java 8 flatMap examples

We would be looking at flatMap method in Java 8 streams and Optional. In our last tutorial we looked at map method in Java 8 stream example. Let us start with the examples 1. Flatten a List<List<String>> to List<String> using flatMap Here we have two lists, a list of front-end languages and a list of […]

Read More