Check if a number is a perfect square or not in Java. We will learn two ways, by using Math.sqrt and by using Math.floor with Math.ceil with examples for each.
ReadJava program to filter a map by key and value. We will learn four different ways to filter a map in this post, by using a loop and with Stream API.
ReadJava program to print from A to Z. This post will show you how to write programs to print A to Z in Java in three different ways.
ReadJava program to check if a user input character is an Alphabet or not. We will learn 4 different ways to check for alphabet in Java.
ReadJava program to print a x star pattern. We will learn 3 different ways to print the plus pattern with star or any other character in Java.
ReadJava program to print a plus star pattern. We will learn 3 different ways to print the plus pattern with star or any other character in Java.
ReadJava program to print a hollow diamond star pattern. This post will show you how to print a hollow diamond start pattern by using a separate method with an example Java program.
ReadJava program to print a Hollow Rhombus pattern in Java. We will learn how to print this pattern with for loops and while loops in this post.
ReadJava program to find all perfect numbers in a range in 3 different ways. Learn what is a perfect number and how to find all perfect numbers in a range.
ReadJava program to find the product of digits of a number. This post will show you the algorithm and two different ways to find the product of digits of a given number.
Read