The Fibonacci sequence is a series of numbers where a number is the sum of previous two numbers. Starting with 0 and 1, the sequence… [Read More]
Java Program to Find Factorial using For and While loop
We will write three java programs to find factorial of a number. 1) using for loop 2) using while loop 3) finding factorial of a… [Read More]
Java Program to Make a Calculator using Switch Case
In this Program we are making a simple calculator that performs addition, subtraction, multiplication and division based on the user input. The program takes the… [Read More]
Java Program to calculate and display Student Grades
This program calculates the grade of a student based on the marks entered by user in each subject. Program prints the grade based on this… [Read More]
Java Program to check Vowel or Consonant using Switch Case
The alphabets A, E, I, O and U (smallcase and uppercase) are known as Vowels and rest of the alphabets are known as consonants. Here… [Read More]
Java Program to find largest of three Numbers
Here we will write two java programs to find the largest among three numbers. 1) Using if-else..if 2) Using nested If To understand these programs… [Read More]
Java Program to Swap two numbers using Bitwise XOR Operator
This java program swaps two numbers using bitwise XOR operator. Before going though the program, lets see what is a bitwise XOR operator: A bitwise… [Read More]
Java Program to find the Smallest of three numbers using Ternary Operator
This java program finds the smallest of three numbers using ternary operator. Lets see what is a ternary operator: This operator evaluates a boolean expression… [Read More]
Java Program to find largest of three numbers using Ternary Operator
This program finds the largest of three numbers using ternary operator. Before going through the program, lets understand what is a ternary Operator: Ternary operator… [Read More]
Java Program to Perform Arithmetic operation using Method Overloading
This program finds the sum of two, three and four numbers using method overloading. Here we have three methods with the same name add(), which… [Read More]
Java Program to find area of Geometric figures using method Overloading
This program finds the area of square, rectangle and circle using method overloading. In this program we have three methods with same name area(), which… [Read More]
Java Programs – Java Programming Examples with Output
To understand a programming language you must practice the programs, this way you can learn any programming language faster. This page includes java programs on… [Read More]
Java Program to Calculate average using Array
We will see two programs to find the average of numbers using array. First Program finds the average of specified array elements. The second programs… [Read More]
Java Program to Reverse a String using Recursion
We will see two programs to reverse a string. First program reverses the given string using recursion and the second program reads the string entered… [Read More]
Java Program to find Sum of Natural Numbers
The positive integers 1, 2, 3, 4 etc. are known as natural numbers. Here we will see three programs to calculate and display the sum… [Read More]
- « Previous Page
- 1
- …
- 4
- 5
- 6
- 7
- 8
- 9
- Next Page »