Java programs (Page 2/11)

Java program to find largest in three numbers using ternary operator

Let’s learn java program to find largest in three numbers using ternary operator. Java program to find largest in three numbers using ternary operator Find…

Read More

Java program to check if it is a sparse matrix

Let’s learn java program to check if it is a sparse matrix. Sparse matrix java means a matrix having more 0 elements. For example, Java…

Read More

Java program to display prime numbers from 1 to 100

Let’s learn java program to display prime numbers from 1 to 100. Java program to find prime numbers is most common java interview question. Java…

Read More

Java program to remove vowels from string using StringBuffer class

Let’s learn java program to remove vowels from string using StringBuffer class. Java program to remove vowels from string using StringBuffer class Removing vowels from…

Read More

Java program to remove vowels from a string using switch case

Let’s learn java program to remove vowels from a string using switch case. Java program to remove vowels from a string using switch case Remove…

Read More

Java program find GCD and LCM of two numbers using euclid’s algorithm

Let’s learn java program find GCD and LCM of two numbers using euclid’s algorithm. Java program find GCD and LCM of two numbers using euclid’s…

Read More

Java program to check armstrong number

Let’s learn java program to check armstrong number. Java program to check armstrong number What is armstrong number? Armstrong number is a positive integer and…

Read More

Java program to print armstrong number from 1 to 1000

Let’s learn java program to print armstrong number from 1 to 1000. Java program to print armstrong number from 1 to 1000 Java armstrong number…

Read More

Java bitwise AND to check a given number is odd or even

Let’s learn java bitwise AND to check a given number is odd or even. Java bitwise AND to check a given number is odd or…

Read More

Even odd program in java using ternary operator

Let’s learn even odd program in java using ternary operator. Even odd program in java using ternary operator In the below java program first user…

Read More