Java programs (Page 2/18)

Find GCD of two numbers in java using recursion

Let’s learn to find GCD of two numbers in java using recursion. Find GCD of two numbers in java using recursion Here’s an example to…

Read More

Java program to print all armstrong numbers between given range

Let’s learn java program to print all armstrong numbers between given range. Java program to print all armstrong numbers between given range In the below…

Read More

Java program to calculate sum of even and odd numbers in an array

Let’s learn java program to calculate sum of even and odd numbers in an array. Java program to calculate sum of even and odd numbers…

Read More

Java program to print odd and even numbers between 1 and 100

Let’s learn java program to print odd and even numbers between 1 and 100. Java program to print odd and even numbers between 1 and…

Read More

count number of even and odd elements in an array in java

Let’s learn to count number of even and odd elements in an array in java. count number of even and odd elements in an array…

Read More

Java program to put even & odd elements of an array in 2 separate arrays

Let’s learn java program to put even & odd elements of an array in 2 separate arrays. Java program to put even & odd elements…

Read More

Java program to find maximum and minimum number without using array

Let’s learn java program to find maximum and minimum number without using array. Java program to find maximum and minimum number without using array In…

Read More

Program to find area of rectangle using inheritance in java

Let’s learn program to find area of rectangle using inheritance in java. Program to find area of rectangle using inheritance in java We can calculate…

Read More

Java program to find area of circle and rectangle using interface

Let’s learn java program to find area of circle and rectangle using interface. Java program to find area of circle and rectangle using interface We…

Read More

Java program to calculate area of circle rectangle and triangle using switch statement

Let’s learn java program to calculate area of circle rectangle and triangle using switch statement. Java program to calculate area of circle rectangle and triangle…

Read More