Here I have compiled various java program examples that will help you to improve your java programming knowledge.
Basic
- Take Input from User
- Addition of Two Numbers
- Calculate Simple Interest
- Calculate Compound Interest
- Swap Two Numbers Using Third Variable
- Swap Two Numbers Without Using Third Variable
- Calculate Area and Circumference of Circle
- Check Even or Odd Number
- Find Largest of Three Numbers
- Check Leap Year
- Convert Decimal to Binary
- Convert Binary to Decimal
- Find GCD of Two Numbers Using Euclidean Algorithm
- Perfect Number
- Find LCM of Two Numbers
- Neon Number
- Square a Number
Loop
- Calculate Power of Number
- Armstrong Number
- Reverse a Number
- Fibonacci Series
- Palindrome Number
- Prime Number
- Factorial of Number
- Pascal Triangle
- Magic Number
Array
Matrix
String
Sorting & Searching
- Heap Sort
- Bubble Sort
- Binary Search
- Linear Search
- Bucket Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Shell Sort
Collections
Algorithm
Other
- Encode or Decode URL Parameters
- Convert JSON to XML or XML to JSON
- Read and Write Properties File
- Convert Image to Base64 String or Base64 String to Image
- Socket Programming
- Zip and Unzip Files and Folders
- Program for Employee Details using Class and Object
Data Structure
More programs coming soon!!