Kotlin – Collections
In this guide, we will discuss Collections in Kotlin. Collections are a common concept for most programming languages. A collection usually contains a number of objects of the same type…
In this guide, we will discuss Collections in Kotlin. Collections are a common concept for most programming languages. A collection usually contains a number of objects of the same type…
In this guide, we will discuss Break and Continue in Kotlin. Kotlin Break Statement Kotlin break statement is used to come out of a loop once a certain condition is met. This…
In this guide, we will discuss While loop in Kotlin. Kotlin while loop executes its body continuously as long as the specified condition is true. Kotlin while loop is similar to Java while loop. Syntax…
In this guide, we will discuss For Loop in Kotlin. What are loops? Imagine a situation when you need to print a sentence 20 times on your screen. You can…
In this guide, we will discuss When Expression in Kotlin. Consider a situation when you have large number of conditions to check. Though you can use if..else if expression to handle the…
In this guide, we will discuss if else expression in Kotlin. Kotlin if else expressions works like an if...else expression in any other Modern Computer Programming. So let's start with our traditional if...else statement…
In this guide, we will discuss Control Flow in Kotlin. Kotlin flow control statements determine the next statement to be executed. For example, the statements if-else, if, when, while, for, and do are…
In this guide we will discuss about Functions in Kotlin. Kotlin is a statically typed language, hence, functions play a great role in it. We are pretty familiar with function,…
Kotlin ranges is defined by its two endpoint values which are both included in the range. Kotlin ranges are created with rangeTo() function, or simply using downTo or (. .) operators. The main operation on ranges is contains, which…
In this guide we will learn about Arrays in Kotlin. Arrays are used to store multiple items of the same data-type in a single variable, such as an integer or…