Here is the huge list of Java programs. These Java programming examples will help you to learn various concepts like class, array, interface, string, swing, etc.
Simple
1. My First Java Program: Print a Message “Hello World”
2. Java program to swap two numbers
3. Java program to swap two numbers without using temp variable
4. Java program to convert given number of days into months and days
5. Java Escape Sequences With Program Example
Loops
1. Java program to check whether a number is prime or not
2. Java program to find sum of digits of a number
3. Program for Armstrong Number in Java
4. Java program to display multiplication table of any number
5. Java program to check whether a given number is palindrome or not
6. Java program to find factorial of given number
7. Java program to reverse a given number
8. Java program to print fibonacci series
9. Program to Convert Binary to Decimal in Java
10. Factorial of Large Number in Java
Array
5. Bubble Sort Java Program
6. Java Program to Find Transpose of Matrix
7. Program for Binary Search in Java
8. Radix Sort Java Program and Algorithm
Sum of Series
1. Java Program to Make a Simple Calculator Using AWT
2. Program to Create Calculator Using Java Swing
String
1. Java Program to Count Number of Words and Spaces in a String
2. String Palindrome Program in Java
3. Java Program to Count Frequency of Each Character in a String
4. Program for String Concatenation in Java
5. Java Program to Count Number of Vowels in a String
6. Java Program to Check String is Alphanumeric or not
7. Java Program to Sort List of Strings
Miscellaneous
1. Java Program to Find IP Address
2. Java Program to Take Screenshots
3. Java Program to Find Current Date and Time
4. Generate Random Number in Java in a Range
More programs coming soon!