Number Programs
Programs involving number manipulation, checks, and mathematical operations.
Prime Number Program in Java
Learn how to check if a number is prime in Java. Multiple approaches including basic, optimized, and...
Armstrong Number in Java
Check if a number is an Armstrong number. A number is Armstrong if the sum of its digits raised to t...
Palindrome Number in Java
Program to check if a number is a palindrome (reads same forwards and backwards).
Perfect Number in Java
Check if a number is a perfect number (sum of proper divisors equals the number).
Strong Number in Java
Check if a number is a Strong number (sum of factorial of digits equals the number).
Reverse a Number in Java
Java program to reverse a number using while loop.
Sum of Digits in Java
Program to calculate the sum of digits of a number.
GCD and LCM of Two Numbers in Java
Find Greatest Common Divisor (GCD) and Least Common Multiple (LCM) of two numbers.
Explore Other Categories
Try These Programs
Run any program directly in our free online Java compiler.
Open Java Compiler