Merge Sort in Java

In this tutorial, we will learn how to implement Merge Sort in java. First, we will start by understanding the Merge Sort algorithm. Sorting Algorithms in Java Merge Sort Algorithm Merge Sort is another sorting algorithm that follows a Divide and Conquer algorithm approach to sort the elements in an array in ascending or descending order. It … Read more

Quick Sort in Java

In this post, we will learn how to implement Quick Sort in java. First, we will start by understanding the Quick Sort algorithm. Sorting Algorithms in Java Quick Sort Algorithm Quicksort algorithm is a way of rearranging the elements in an array in ascending or descending order. Quicksort is another Divide and Conquer algorithm. It … Read more

Insertion Sort in java

In this tutorial, we will learn how to implement Insertion Sort in java. First, we will start by understanding the Insertion Sort algorithm. Sorting Algorithms in Java Insertion Sort Algorithm Insertion sort is a simple sorting algorithm that sorts the elements in an array by comparing the values at index with all its prior elements. … Read more

Heap Sort in Java

In this tutorial, we will learn how to implement Heap Sort in java. First, we will start by understanding the Heap Sort algorithm. Sorting Algorithms in Java Heap Sort Algorithm Heap is a tree in heap sorting that possesses some specific properties whose value should be greater than or equal to that of the children … Read more

Selection Sort in Java

In this post, we will learn how to implement Selection Sort in java. First, we will start by understanding the Selection sort algorithm. Sorting Algorithms in Java Selection Sort Algorithm The selection sort is a simple sorting algorithm which is an in-place comparison-based algorithm. It has two parts where the left end has a sorted … Read more

Counting Sort in Java

In this post, we will learn how to implement Counting Sort in java. First, we will start by understanding the Counting Sort algorithm. Sorting Algorithms in Java Counting Sort Algorithm Counting Sort Algorithm is an integer-based algorithm, non-comparison, and linear sorting algorithm. The counting sort algorithm sorts the elements in an array in a specific … Read more

Special Number Program in Java

Here we will learn how to do programming on Special Number. We will start by understanding, what is Special Numbers and solve the following two questions on a special number in java. Question:1. Write a program in Java to check whether a number is Special or not.2. Write a Java Program to find all special … Read more

Java Program to Find the Greatest of Three numbers using if-elseif statement

The following program takes three integers from the user and finds the largest of those three numbers. The program uses if..else if statement to check the greatest of three and print them accordingly. Before we start, click on the links below to have a proper working idea of if..else if statement that this program uses. … Read more

Java Program to Find the Greatest of Three Numbers

The following program takes three integers from the user and finds the largest of those three numbers. The program uses if..elseif statement to check the greatest of three and print them accordingly. Before we start, click on the links below to have a proper working idea of if..elseif statement that this program uses. if–elseif ladder … Read more