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
java logo

Java Program Find Students Grades using Switch Case and Methods

Java Program to find the grade of a student using switch case. Here we will write a Java program find out students grades using switch case statement. The below table shows the grading…

Read more
java logo

Compound interest program in Java 

| Compound interest is calculated by multiplying the initial principal amount by one plus the annual interest rate raised to the number of compound periods minus one. After that, the total initial amount…

Read more