Java Articles

Reverse a String using Java 8 Streams

Java 8 – How to Reverse a String using Streams?

In  this tutorial, we will see "How to Reverse a String using Java 8 Streams?" How to reverse a string in java 8 streams and collect [crayon-662ff780d564a385566024/]  ...
Print all permutations of String in Java

Java – How to Print all Permutations of a String?

In  this tutorial, we will see "How to Print all Permutations of a String in Java" Print all permutations of string in java [crayon-662ff780d5822635692339/]   Output:...
LCM of two numbers - Java

Java – How to Calculate LCM of two numbers? (Simplest Example)

In  this tutorial, we will see "How to calculate LCM (Least Common Multiple) of two numbers using Java?" Calculate LCM of two numbers in Java You can use the following formula to calculate the least common multiple (LCM) of two numbers in Java:...
GCD of two numbers - Java

Java – How to Calculate GCD of two numbers? (Simplest Example)

In  this tutorial, we will see "How to calculate GCD (Greatest Common Divisor) of two numbers using Java?" Calculate GCD of two numbers in Java [crayon-662ff780d5ada762900918/]   Output:...