In this quick tutorial, we’ll learn how to sort Set in Java 8. stream.sorted() is a predefined method of Stream […] Continue reading »
In Java 8, the elements of a list are sorted by calling stream.sorted() method of Stream interface. As we know, […] Continue reading »
Sometimes interviewer wants to check the candidate’s logical ability and the approach taken to solve the challenge/problem using Java. Question: […] Continue reading »
Java 8 Stream interface provides mapToInt() method to convert a stream integers into a IntStream object and upon calling sum() method […] Continue reading »
This guide walks you through how to iterate Enum in Java/Java 8. .values() method of an enum class return an […] Continue reading »
This page will walk through custom Stack implementation in Java using Array. The Stack is a linear data structure which […] Continue reading »
In this tutorial, we will discuss the best practices to avoid or handle NullPointerException in Java. NullPointerException generally threw when […] Continue reading »
In this example, we will show you how to check HashSet contains element case insensitive in Java. contains() method of […] Continue reading »
This page will walk through How to unmarshal/parse XML file using JAXB in Java. JAXB stands for Java Architecture for […] Continue reading »
Java 8 introduced distinct() method in Stream interface to find the distinct element in a list. distinct() method returns a stream […] Continue reading »
On this page, you will learn how to find and replace words in a file using Java Stream. Java introduced […] Continue reading »