Kotlin when Expression

If you are familiar with Java, then no course in Java is possible without flow of controls in which the switch forms a very important lesson. A typical switch looks like below:

       case 1:System.out.println(" MONDAY ");        break;
       case 2:System.out.println(" TUESDAY ");       break;
       case 3:System.out.println(" WEDNESDAY ");     break;
       case 4:System.out.println(" THRUSDAY ");      break;
       case 5:System.out.println(" FRIDAY ");        break;
       case 6:System.out.println(" WEEKEND ");       break;
       case 7:System.out.println(" WEEKEND ");       break;
       default:System.out.println(" NOT POSSIBLE "); break;

Read more

Kotlin if else Expression

In this tutorial you will learn about kotlin if, else and nested if else expression.

The if expression is definitely one of those constructs which lets us simplify our task of determining conditions during a program flow. Or rather, for performing any decisions in the program we look up to the if statement first, before considering any other because of our sheer familiarity with the statement and efficiency of the same. The latter part however, by and large depends on our problem statement. The if statement hence, is an integral part of any programming language.

Read more

Kotlin Basic Types

Here you will learn about kotlin basic types.

Data types are fundamental when it comes to any programming language, basically it tells the compiler the type of data it should expect in the defined variable. It can be a string, bool, integer, float, double, char and many more. Lets discuss them one by one in detail.

Read more

Kotlin Variables

In this tutorial you will learn about Kotlin variables.

In programming world, variable is responsible for storing some value. The value is stored at some memory location. A memory location or address may look something like 0x7ff9c05f. It is not easier to remember or use it to access the value stored at the memory address.

Read more

Kotlin vs Java – Difference between Kotlin and Java

This tutorial is about Kotlin vs Java i.e. difference between Kotlin and Java.

Kotlin and Java both are JVM based and platform independent languages and there are various similarities in them. Kotlin and Java program on compilation converted into .class file which is executed by JVM. Still there are various dissimilarities between them that I have discussed below in tabular form.

Read more

Kotlin Hello World Program

In this tutorial we will make Kotlin hello world program.

When we start learning any new programming language, hello world is the very first program that we mostly make. So below I have shared the program along with its explanation.

Read more

How to Run Kotlin Program in Eclipse IDE

In this tutorial you will learn how to run Kotlin program in Eclipse IDE.

Below is the step by step procedure to install Kotlin plugin and then configure Eclipse to run Kotlin program. The process is same and should work on all Eclipse versions.

Read more

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!