Select Page

# Java Articles

## 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 [crayon-662ff5c8c4ed7777234782/]   Output: [crayon-662ff5c8c4edf414687287/] How to...

## 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 API can be used to filter an ArrayList. Java 8 streams filter example Check out: ArrayList ListIterator in Java with Examples [bctt tweet="Java 8...

## 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 matrices using Java 8 Stream [crayon-662ff5c8c5425041575378/]   Output:...

## 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 1st method (before JAVA 8): [crayon-662ff5c8c5553603961696/]  ...

## 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...

## 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...