Find Smallest Number in an Array Using Java

Prem Tiwari - - Java Programming


In this java program, I will share Java program to find the smallest number in an Array with an example. We have sorted the given array in ascending order and returning the first element. See …

Prime Number Program in Java

Prem Tiwari - - Java Programming


This is a simple Java program to find the prime number. A prime number is a number which is greater than 1 and only divisible by 1 or itself. Following is the first 10 prime …

How to Remove Duplicate Element in an Array Using Java

Prem Tiwari - - Java Programming


In this program, I will share how to remove duplicate element in an array using java programming language with an example/output. How to Remove Duplicate Element in an Array Using Java Copy the below java …

Palindrome Program in Java

Prem Tiwari - - Java Programming


In this tutorial, I will explain how to write a palindrome program in java programming language. A palindrome number is a number which remains the same number when its digits are reversed. Palindrome number algorithm …

How to write a Java Program to Swap Number Without Temporary Variable

Prem Tiwari - - Java Programming


In one of the previous tutorial, I have explained how to swap two numbers in java programming language. In this tutorial, I will share how to write a java program to swap number without a …

Odd Even Program in Java

Prem Tiwari - - Java Programming


I got a request from my site readers who is a student of the final year in BCA and is a java beginner about how to write a program in java programming language to check …

Reverse Number Program in Java Programming Language

Prem Tiwari - - Java Programming


In this program, I will share to how to write a Java program to reverse any given number. When you execute this program, it asks you to enter any number and then it will reverse …

Java Program to Check Armstrong Number

Prem Tiwari - - Java Programming


This is simple Java program to check Armstrong number. When you execute this program, it asks to enter any number and then it will check whether entered number is Armstrong number or not. At the …

Java Program to Swap Numbers

Prem Tiwari - - Java Programming


This is a very basic program in Java programming language. If you are a Java beginners or want to start learning Java programming language, then this program will help you to understand the basic Java …

Java Program to Subtract Any Two Numbers

Prem Tiwari - - Java Programming


In this post, I will explain about a Java program to subtract any two numbers with an example and program output. This is a very basic program in Java programming language. If you are a …

Java Program to Add Any Two Numbers

Prem Tiwari - - Java Programming


This is a very basic program in Java programming language. If you are a Java beginners or want to start learning Java programming language, then this program will help you to understand the basic Java …