Overview Selection sort is the most basic way of sorting an Array. We compare each element with its subsequent elements and swap them if one is smaller than the other.

What is Binary Search? Binary search is the fast method of searching for an element in an array. In this approach, we need the array in sorted order. In Binary

A linear search is the simplest form of search in an array of elements. We can perform a linear search in three distinct ways based on the order of elements

Play with Docker If you are learning docker or if you want to try out a quick thing in docker, Play with Docker is the best place to do it.

LCM of Two Numbers in Java Let’s start discussing how to find LCM of two numbers in Java. We can find LCM in 2 ways: (1) by iterating over a

In this article, we’ll see the temperature conversions between four different temperature scales named Fahrenheit, Celsius, Kelvin, and Rankine. Temperature Scales Fahrenheit Scale Fahrenheit scale was created by German scientist

In this post, we’ll see various ways of calculating average of n numbers in Java.1) Average of 3 input numbers2) Average of n numbers input by user3) Average of the

We will solve this basic problem of the addition of two numbers in three ways, first by using a Scanner, second by using BufferedReader, and at last by using command-line

In this post, we will see 2 variations of finding maximum of 3 numbers in Java: (A) Max value of 3, (B) Max variable of 3 numbers. Max Value of

Java wrapper class Integer provides an utility function toOctalString(int) which returns an integer in octal form. However, in this post, we will also see an example on how we can