Java 8 Articles

Find common elements of two arrays using Java 8 streams

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 of two arrays using Java 8 Stream [crayon-662d4eac6007a007100043/]  ...
Find min and max numbers without using if else statements in java 8 streams

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 fact with the help of streams in Java 8?" find max and min of two numbers using Java 8 Streams [bctt tweet="Find max/min of two numbers without if-else...
Find the count of occurrences of a number in array using Java 8 streams

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 occurrences of a number using Java 8 Streams API ...
Find duplicate elements in array using java 8

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?". [crayon-662d4eac60552052442149/] Output: [crayon-662d4eac60555891330838/] In this tutorial, we will...