Author name: Admin

Kotlin for Loop

Before we jump on see what Kotlin has to offer in terms of for loop, let’s first recap the one we have used in Java. A typical Java for loop would like below: for (int i = 0;i<10;i++){ System.out.println(“Number is ” + i); }

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: switch(weekNumber){ 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(” …

Kotlin when Expression 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 …

Kotlin Basic Types 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.