Skip to content

Category Archives: Kotlin

In traditional recursion call, we perform our recursive call first, and then we take the return value of the recursive call and calculate the result.… Read More
In this tutorial we will learn Kotlin Recursive function. Like other programming languages, we can use recursion in Kotlin. A function which calls itself is… Read More
In this article, we are going to learn lambdas expression and anonymous function in Kotlin. While syntactically similar, Kotlin and Java lambdas have very different… Read More
In most of the programming languages, we need to specify all the arguments that a function accepts while calling that function but in Kotlin, we… Read More
A function is a unit of code that performs a special task. In programming, function is used to break the code into smaller modules which… Read More
In this article, we will learn how to use continue in Kotlin. While working with loop in the programming, sometimes, it is desirable to skip… Read More
In this article, we will learn how to use continue in kotlin. While working with loop in the programming, sometimes, it is desirable to skip… Read More
While working with loops say you want to stop the execution of loop immediately if a certain condition is satisfied. In this case you can… Read More
When we are working with loops and want to stop the execution of loop immediately if a certain condition is satisfied, in this case, we… Read More
Like Java, do-while loop is a control flow statement which executes a block of code at least once without checking the condition, and then repeatedly… Read More
In programming, loop is used to execute a specific block of code repeatedly until certain condition is met. If you have to print counting from… Read More
In Kotlin, for loop is equivalent to foreach loop of other languages like C#. Here for loop is used to traverse through any data structure… Read More
In Kotlin, when replaces the switch operator of other languages like Java. A certain block of code needs to be executed when some condition is… Read More
Decision Making in programming is similar to decision making in real life. In programming too, a certain block of code needs to be executed when… Read More
Kotlin Expression – An expression consists of variables, operators, methods calls etc that produce a single value. Like other language, Kotlin expression is building blocks… Read More