Java Articles

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-6605bb911ed62279953998/] Output: [crayon-6605bb911ed65678217755/] In this tutorial, we will...
Swapping of two numbers wiithout using third variable in Java

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 numbers without using third variable in java ...