Resolve NullPointerException in Collectors.toMap
In the previous tutorials, we discussed how to convert a list to map in Java 8. But when we turn the List to Map, we need to be…
Press Esc to close
Archive
In the previous tutorials, we discussed how to convert a list to map in Java 8. But when we turn the List to Map, we need to be…
In this tutorial, I am going to show you how to group a list of objects in Java 8. Java 8 groupingBy: groupingBy() is a static method available…
In this tutorials, I am going to show you how to read a File line by line using Java 8 Lambda Expressions. Read File Line By Line :…
In this tutorials, we are going to see how to sort user defined objects using Java 8 comparator with lambda expression. In the previous tutorials we have discussed…
In this tutorial, we are going to filter a Map in Java 8. We have been filtering the map in Java since over the years. But in previous…
I this tutorial, I am going to show you how to sort a Map using Java 8 features. Sort a Map using Java8 : We can sort a…
In this tutorial, we are going to learn about the conversion of List to Map in Java 8. Converting List to Map in Java 8 : We can…
In this tutorials, we are going to learn how to convert stream to list in Java 8 Java 8 convert Stream to List : Java 8 provides a…
Lambda Expressions in Java is one of the most awaited features, which was introduced in Dot Net version 3.5 (2007). They make the programming easier by eliminating the…
DateTime API is introduced in Java 8 to solve the issues with current java.util package Date and Timestamp API problems. DateTime API in Java 8 Why do we need…
Default Static methods in Interface, introduced in Java 8 are as equally important to understand as like Lambdas. Default Static methods in Interface address the problems with the current design…
Repeating Annotations in Java 8 are introduced for the support of having multiple same annotations to a declaration. Before Java 8 duplication annotations are not allowed. Let's take…
The Stream API is a new feature in Java 8 that provides advanced capabilities to manipulate large collections of data. It is one of the most significant new…
Lambda expression is a significant new feature in Java 8 that enables developers to use functional programming features in Java code. The introduction of lambda expressions and related…