Java 8 gave us the opportunity to get over the traditional structure of 'FOR' loops and make it more effective and...
Blog Articles
Simplest way to Create Thread using Lambda Expression in Java 8
In Java, you can create a Thread using Lambda expression by leveraging 'Runnable' functional interface. It's very...
Find the first non-repeating character in a string using Java 8
In this tutorial, we will learn "Find the first non-repeating character in a string using Java 8?". In order to do...
How to use the Collectors class in Java 8 to group and count elements in a list?
In Java 8 and later versions, the Collectors class in the java.util.stream package provides various utility methods to...
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 convert List to Map?
In this tutorial, we will see "How to convert List to Map using Java 8?"How to convert List to Map in java 8...
Java 8 Streams Filter a List Example
In this tutorial, we will see "How to use Streams to Filter a List in Java 8?". We are going to use how Java 8 Streams...
Java 8 – Program to Multiply Two Matrices? (Simplest Example)
In this tutorial, we will see "Program to Multiply two matrices using Java 8 Streams?" program to multiply two...
Java – Multiple ways to find Nth Fibonacci Number
In this tutorial, we will see "Two ways to find Nth Fibonacci Number using Java?"find nth Fibonacci number in java 8...
Java – Multiple ways to Generate Random Number within a Range
In this tutorial, we will see "Several ways to generate a random number within range using Java?" generate...
Java – How to find the two numbers in an array whose sum is closest to zero?
In this tutorial, we will see "How to find two numbers in an array whose sum is closest to zero using Java?"find...