Java Example Programs

Java Fundamental Programs Java Program to Print Hello World Java Program for Basic Input and Output Java Program to Add Two Numbers Java Program to Add Subtract Multiply and Divide Two Numbers Java Program to Make a Simple Calculator using Switch Statement Java Program to Print ASCII Value of All Alphabets Java Program to Check a Character is Vowel or Consonant Java Program to Check Odd or Even Numbers Java Program to Find Largest of Three Numbers Java Program to Check Whether a Number is Positive or Negative Java Program to Print Multiplication Table of 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 Reverse a Number using Recursion Java Program to Check Perfect Number or Not Java Program to calculate area and circumference of circle Java Program to Find Area of Right Angled Triangle Java Program to Find Sum of Elements of an Array Java Program to Calculate Arithmetic Mean of N Numbers Java Program to Calculate Average and Percentage Marks Java Program to Calculate Grade of Students Java Program to Check a Number is Prime Number or Not Java Program to Search an Element in an Array using Linear Search Java Program to generate a sequence of random numbers Java Program to Find Duplicate Elements in an Array Java program to convert binary number to decimal number Java Program to Find Area and Perimeter of Rectangle Java Program to Find Largest and Smallest Number in an Array Java Program to Find Factorial of a Number using For Loop Java Program to Find Factorial of a Number Using Recursion Java Program to Swap Two Numbers Java Program to Find Average of all Array Elements 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 Check If a Year is Leap Year or Not 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 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