In Java 8 and later versions, the Collectors class in the java.util.stream package provides various utility methods to...
Blog Articles
How to use the Optional class in Java 8 to handle null values?
In Java 8 and later versions, the Optional class is part of the java.util package and provides a way to handle null...
How to use the reduce() method in Java 8 to perform a calculation on a list of numbers?
In Java 8 and later versions, the reduce() method is available in the Stream API to perform a calculation on a list of...
Java 8 – How to find the First Non-Repeated Character in a String?
In this tutorial, we will see "How to find the first non-repeated character in a string using Java 8?"find first...
Java 8 – How to find common elements in two arrays using Streams?
In this tutorial, we will see "How to find common elements of two arrays using Java 8 Streams?"find common elements...
Java 8 – How to find the max and min of two numbers without using if-else statements?
In this tutorial, we will see "How to find the maximum and minimum of two numbers without using if-else but in...
Java 8 – How to count occurrences of a number in an array using Streams?
In this tutorial, we will see "How to count occurrences of a specific number in an array using Java 8 Streams?" Count...
How to find Duplicate Elements in an Array in Java 8
In this tutorial, we will see "How to find Duplicate Elements in an Array using Java 8?". [bctt tweet="Find Duplicate...
Java – Swap two numbers without using a third variable?
In this tutorial, we will see "How to Swap two numbers without using a third variable in Java?" swapping of two...
Java – Swap two numbers using a third variable?
In this tutorial, we will see "How to Swap two numbers using a third variable in Java?" swapping of two numbers...
Java 8 – How to convert Hexadecimal Number to Binary?
In this tutorial, we will see "How to convert Hexadecimal to Binary using Java 8?" How to convert hexadecimal number...
Java – How to convert Hexadecimal to Decimal number?
In this tutorial, we will see "How to convert Hexadecimal to Decimal in Java?" How to convert hexadecimal number to...