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. Play with Docker is a lab environment provided by Docker itself. To start playing around with docker, all you need to do is log in with your free docker id and start using it. You will get 4 hours of time to play around with it in a … [Read more...] about Docker Swarm on Play with Docker

## LCM and GCD of Two Numbers in Java

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 loop (2) by using GCD What is the Least Common Multiple (LCM)? Its definition is self-explanatory. If there are two numbers x and y, LCM is a positive number and the smallest of all the common multiples of both x and y. … [Read more...] about LCM and GCD of Two Numbers in Java

## Temperature Conversions using Java

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 Daniel Gabriel FahrenheitAccording to this scale, water freezes at 32 degrees of Fahrenheit and boils at 212 degrees of FahrenheitSo it will … [Read more...] about Temperature Conversions using Java

## Average of n Numbers in Java

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 numbers in an array Average of 3 input numbers: We are calling nextLine to read the newline character entered after the number. If we do not do this, next time when nextInt is called it may not found the … [Read more...] about Average of n Numbers in Java

## Addition of Two Numbers in Java

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 arguments. Addition of two numbers using Scanner Java provides Scanner class in java.util package. This class is very popular to read values from the user as it allows the user to pass InputStream as an … [Read more...] about Addition of Two Numbers in Java