java logo

GCD number in java program

Write a Java program to find the GCD of N numbers or more than two numbers. GCD of three or more numbers can be calculated by repeatedly taking the GCD of pairs of numbers….

Read more
java logo

Java Program to Calculate Compound Interest

In this tutorial, we will write a java program to calculate compound interest. Compound Interest Formula Compound interest is calculated using the following formula: P (1 + R/n) (nt) – P Here P is principal amount….

Read more
java logo

Java Program to find duplicate Characters in a String

is program would find out the duplicate characters in a String and would display the count of them. import java.util.HashMap; import java.util.Map; import java.util.Set; public class Details { public void countDupChars(String str){ //Create…

Read more
java logo

Java program to check weather a number is neon or not

// Java Program to Check If a Number is Neon number or not // Importing java input/output library import java.io.*; class GFG { // Method to check whether number is neon or not…

Read more
java logo

Java programs to display armstrong number

Last Updated : 17 Mar, 2021 A positive integer with digits p, q, r, s…, is known as an Armstrong number of order n if the following condition is fulfilled. pqrs… = pn +…

Read more
java logo

Java program to find all Sunny number in a given range

V Previously we have developed many Java programs on numbers. In this post, we will develop a Java program to check whether the given number is a sunny number or not? We will…

Read more
java logo

Java Program to find factors of a number

Java Program to Find Factors of a Number | A number which divides completely the number “N” is called the factor of the number “N”. For example:- the numbers 1, 2, 3, 4,…

Read more
java logo

Multiplication table program

In this post, we will develop a Java program to display the multiplication table. In mathematics, a multiplication table is a mathematical table used to define a multiplication operation for an algebraic system….

Read more
java logo

Java Program to Convert Celsius to Fahrenheit

Conversion from Celsius to Fahrenheit and from Fahrenheit to Celsius has an important role in the conversion of units system. In this post, we will develop a Java program to convert Celsius to Fahrenheit. The…

Read more
java logo

Java Program to reverse a string

We will see two programs to reverse a string. First program reverses the given string using recursion and the second program reads the string entered by user and then reverses it. To understand…

Read more