Skip to content

Tag Archives: Kotlin Control-flow

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
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