Find Smallest Number in an Array Using Java

Posted by Prem Tiwari | Updated on | in 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

Posted by Prem Tiwari | Updated on | in Java Programming.


Prime Number Program in Java |┬áprime number program in java using for loop Prime Number Program in Java: This is a simple Java program to find the prime number. A prime number is a number …

Java Program to Get Yesterday’s Date with Output

Posted by Prem Tiwari | Updated on | in Java Programming.


In this tutorial, I will share a Java program to get yesterday’s date with an output. Copy the below and execute it with the help of Java compiler and see the output. In this program, …

Java Program to Print Random Numbers With Output

Posted by Prem Tiwari | Updated on | in Java Programming.


This is a simple Java programs which will generate and print the random numbers with the help of inbuilt Java classes java.util.Random. At the end of this program, I have shared some execution result for …

How to Remove Duplicate Element in an Array Using Java

Posted by Prem Tiwari | Updated on | in 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 …

How to Find Third Highest Number in an Array Using Java Program

Posted by Prem Tiwari | Updated on | in Java Programming.


This is a simple java program to find the third highest/largest number in given Array. Let’s see the below example to find out the third largest number in an array. How to Find Third Highest …

Palindrome Program in Java

Posted by Prem Tiwari | Updated on | in 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 …

Java Program to Calculate The Factorial Number

Posted by Prem Tiwari | Updated on | in Java Programming.


Hi friend, hope you are doing good. In today’s tutorial, I am going to share a very useful java program to calculate the factorial number of any given number. If you are looking for how …

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

Posted by Prem Tiwari | Updated on | in 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

Posted by Prem Tiwari | Updated on | in 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

Posted by Prem Tiwari | Updated on | in 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

Posted by Prem Tiwari | Updated on | in 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 Subtract Any Two Numbers

Posted by Prem Tiwari | Updated on | in 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 …