Java 8 – Optional class in detail
In this article, we will discuss Optional class in detail and understand why it is needed/introduced in Java 1.8 version and how to avoid/handle (or Read More
In this article, we will discuss Optional class in detail and understand why it is needed/introduced in Java 1.8 version and how to avoid/handle (or Read More
In this article, we will see how to reverse a String in place using traditional & Java 8 Stream approaches 1. Traditional approach : ReverseStringInPlace.java Read More
In this article, we will discuss how to find and print common & uncommon elements from 2 Lists (or ArrayList) There are different ways to Read More
In this article, we will discuss how to sort a HashMap by its Values first and then by its Keys 1. Sorting HashMap by Value Read More
In this article, we will discuss how to write Java code to create Thread-safe Singleton class in a Multi-threaded environment Before starting to write code Read More
In this article, we will discuss how to find the desired result from the Integer[] arrays for the problem statement given below 1. Problem statement Read More
In this article, we will discuss how to find employee count in every department using Java 8 Stream API Find employee count in each department Read More