Java Example Programs

Java Fundamental Programs Java Program to Print Hello World Java Program for Basic Input and Output Java Program to Check Odd or Even Numbers Java Program to Check Whether a Number is Positive or Negative Java Program to Find Largest of Three Numbers Java Program to Swap Two Numbers Java Program to Print ASCII Value of All Alphabets Java Program to Check a Character is Vowel or Consonant Java Program to Calculate Arithmetic Mean of N Numbers Java Program to Calculate Average and Percentage Marks Java Program to Find Area and Perimeter of Rectangle Java Program to Print Fibonacci Series with and without using Recursion Java Program to Check Whether a Number is Palindrome or Not Java Program to Find Sum of all Odd Numbers between 0 to N Java Program to Add Two Numbers Java Program to Add Subtract Multiply and Divide Two Numbers Java Program to Find LCM and GCD of Two Numbers Java Program to Check Whether a Number is Armstrong Number or Not Java Program to Print Armstrong Numbers Between 1 to N Java Program to Reverse a Number using Recursion Java Program to Check Perfect Number or Not Java Program to Find All Factors of a Number Java Program to Check a Number is Prime Number or Not Java Program to Print Prime Numbers between 1 to 100 Java Program to Find Sum of Digits of a Number Java Program to Count Number of Digits in a Number Java Program To Reverse Digits of a Number using While Loop Java Program to Find Factorial of a Number using For Loop Java Program to Find Factorial of a Number Using Recursion Java Program to Print Multiplication Table of Number Java Program to Make a Simple Calculator using Switch Statement Java Program to Calculate Simple Interest Java Program to Check If a Year is Leap Year or Not Java Program to Calculate Compound Interest Java Program to Convert Celsius to Fahrenheit Java Program to Convert Fahrenheit to Celsius Java program to convert binary number to decimal number Java Program to Convert Decimal to Binary Numbers Java Program to Convert Octal Number to Decimal Number Java Program to calculate area and circumference of circle Java Program to Find Area of Right Angled Triangle Java Program to Find Area Of Triangle Java Program to Find Area Of Trapezoid Java Program to find Area Of Equilateral Triangle Java Program to Calculate Volume of Sphere Java Program to Find Surface Area and Volume of Cylinder Java Program to Calculate Surface Area and Volume of Cube Java Program to Find Volume and Surface Area of Cuboid Java Program to Calculate Volume and Surface Area of Cone Java Program to Calculate Grade of Students Java Program to generate a sequence of random numbers Java Program for Matrix Multiplication Java Program to Find Transpose of a Matrix Java Program to Find Length of a String Java Program to Copy a String Java Program to Concatenate Two Strings Java Program to Reverse a String Java Program to Delete All Spaces from a String Java Program to Find Count of Each Character in a String Java Program to Check Two Strings are Anagram or Not Java Program to Delete all Vowel Characters from String Java Program to Check Whether two Strings are Equal or Not Java Program to Delete a Word from Sentence Java Program to Count Words in a Sentence Java Program to Reverse Sequence of Words of a Sentence Java Program to Print Pascal Triangle Java Program to Print Right Triangle Star Pattern Java Program to Print Inverted Right Triangle Star Pattern Java Program to Print Pyramid Pattern of Stars Java Program to Print Inverted Pyramid Pattern of Stars Java Program to Print Right Triangle Pattern of Natural Numbers Java Program to Print Diamond Pattern of Star Character Java program to Print Square Pattern of Star Character Java Program to Print Multiplication Table Triangle Pattern Java Program to Find Sum of Elements of an Array Java Program to Search an Element in an Array using Linear Search Java Program to Find Average of all Array Elements Java Program to Merge Two Sorted Arrays Java Program to Insert an Element in Array at Given Position Java Program to Find Duplicate Elements in an Array Java Program to Find Largest and Smallest Number in an Array