Binary Search Program in Java

By: Editorial Staff | Last Updated: | In: Java Tutorial


In this program, we are going to share binary search program in Java programming language. If you are a Java beginner and want to start learning the Advance Java, then keep your close attention in this tutorial as I am going to share how to write a java program for binary search. Binary Search Program …

Java Program to Shutdown Computer

By: Editorial Staff | Last Updated: | In: Java Tutorial


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 language, then this program will help you to understand the basic Java programming. Java Program to Shutdown Computer Before executing …

Java Program to Generate Random Numbers

By: Editorial Staff | Last Updated: | In: Java Tutorial


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 or want to start learning Java programming language, then this program will help you to understand the basic Java programming. …

Java Program to Divide Any Two Numbers

By: Editorial Staff | Last Updated: | In: Java Tutorial


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 beginners or want to start learning Java programming language, then this program will help you to understand the basic Java …

Java Program to Multiply Any Two Numbers

By: Editorial Staff | Last Updated: | In: Java Tutorial


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 beginners or want to start learning Java programming language, then this program will help you to understand the basic Java …

Linear Search Program in Java

By: Editorial Staff | Last Updated: | In: Java Tutorial


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 element of an array is compared with the next element sequentially. Copy the below java program and execute it with …

Selection Sort Program in Java

By: Editorial Staff | Last Updated: | In: Java Tutorial


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 search the lowest element in an array and arrange them to the proper place and then swap the current element …

Bubble Sort Program in Java

By: Editorial Staff | Last Updated: | In: Java Tutorial


In this tutorial, we will share a java program to sort the elements of an array using the bubble sort algorithm. Bubble sort algorithm is the simplest sorting algorithm. In this program, we traversed the first element of the array to the last element. We compare the current element with the next element if the …

Java Program to Get IP Address

By: Editorial Staff | Last Updated: | In: Java Tutorial


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 going to share a Java Program to Get IP Address with an example and output. Java Program to Get IP …

Java Program to Add Two Numbers Without Using Third Variable

By: Prem Tiwari | Last Updated: | In: Java Tutorial


In this tutorial, I will explain how to write a Java program to add two numbers without using the third variable. In this program, I have declared two variables as X and Y with some values, after that, used plus operator to save both values and put the result in the first variable. Java program …