Java8 Optional class, usage and advantages ?
The Optional class was introduced in Java 8 as a way to handle the null values in a cleaner and
The Optional class was introduced in Java 8 as a way to handle the null values in a cleaner and
Java Streams is a powerful API for processing data and performing complex operations in an efficient and elegant manner. However,
The Java Stream API provides several aggregate operations to process data in a functional way. Two of these operations, map()
Java 8 introduced streams as a way to process data in a functional and efficient manner. One of the key
Now there is a frequent scenario to convert Iterable to Stream as we are dealing with JPA repositories. Most of
The current sorting implementations provided by the Java Collection Framework, i.e. Collections.sort and Arrays.sort sequentially performs the sorting. In this
Here we will see how to get common elements from two lists we can even say the intersection of two
In this tutorial, we will see different ways to convert InputStream to String in java. How to Convert InputStream to
In this tutorial, we will see how Java 8 Stream Generate Random String and Numbers. Stream generate random String: Stream
Getting Min and Max values from a Stream in Java 8 is not a big deal, here we will see
In this tutorial, we will see how to get Stream count in Java 8 using Stream count and Collector counting
Here we will see how to Merge Streams in Java 8. How to Merge Streams: Concatenating of streams in java
Here we will see how to get current UTC time in java in different ways. How to get Current UTC
Here we will see how to convert Java 8 Stream to Array of strings or objects. Convert Java 8 Stream
Here we will see how to convert List to String comma separated values using Java 8. List to String Comma
In older versions of java like before java 8, we usually iterate for loop using indexes, for example, if we
Here I am going to show you how to convert java.util.Date to java.time.LocalDate object. Convert java.util.Date to java.time.LocalDate: We can
In this tutorial, I am going to show you how to set JAVA_HOME on Windows10 operating system. Note: Assuming Java8
This tutorials gives you an understanding about how to setup Java8 on Windows 10 operating system. Java8 on Windows 10
In this tutorial, I am going to show you how to concatenate arrays using Java8 streams. Java8 Concatenate Arrays :