Java Program to Shutdown Computer

Editorial Staff - - Java Programming


In this post, I will explain about a Java program to shutdown computer. This is a very basic program in Java programming language. If you are Java beginners or want to start learning Java programming …

Java Program to Generate Random Numbers

Editorial Staff - - Java Programming


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

Java Program to Divide Any Two Numbers

Editorial Staff - - Java Programming


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

Java Program to Multiply Any Two Numbers

Editorial Staff - - Java Programming


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

Linear Search Program in Java

Editorial Staff - - Java Programming


In this tutorial, we will share a java program to sort the elements of an array using the Linear Search algorithm. Linear Search algorithm is the simplest searching algorithm. In the linear search algorithm, each …

Selection Sort Program in Java

Editorial Staff - - Java Programming


In this tutorial, we will share a java program to sort the elements of an array using the Selection sort algorithm. Selection sort algorithm is the simplest sorting algorithm. In this Selection Sort program, we …

Java Program to Get IP Address

Editorial Staff - - Java Programming


This is simple Java program to print the IP address of your computer. If you want to get the IP address of your machine, then keep your close attention in this tutorial as we are …

Java Program to Print First 10 Prime Numbers

Prem Tiwari - - Java Programming


This is a very simple Java program to print first 10 prime numbers. If you are a Java beginners or want to start learning Java programming language, then this program will help you to understand …

Java Program to Subtract 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 …

Java Program to Print First 10 Natural Numbers

Prem Tiwari - - Java Programming


A natural number is a number which is commonly used for counting and ordering. As such, it is a whole, non-negative number. If you want to print the first natural number using Java program, then …

Java Program to Get Yesterday’s Date with Output

Prem Tiwari - - 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

Prem Tiwari - - 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

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 …

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

Prem Tiwari - - 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

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 …