Example 1: Kotlin Program to Add Two Dates Kotlin Program to Add Two Dates .we’ll learn about...
Tag - Kotlin Examples
Kotlin Continue Statement Example
As like every programming language in Kotlin continue expression skips the current iteration of the...
Kotlin Break Statement Example
As like java break statement is used to break the iteration from the looping statements. Kotlin...
Kotlin For Loop Example
For loop in Kotlin is slightly different from java. In Kotlin, for loop is used to iterate through...
Kotlin Do While Loop Example
do..while loop in Kotlin guarantees at least one execution of block of statements because loop...
Kotlin While Loop Example
As like In Java, Kotlin while loop continually executes a block of statements while a particular...
Kotlin When Statement Example
Kotlin when statement is same as Java’s Switch statement. When statement in Kotlin allows a...
Kotlin Nested If Example
A nested if statement is an if-else statement with another if statement as the if body or the else...
Kotlin If Else If Statement Example
Kotlin Code: fun main(args: Array<String>) { var number = 2 val result = if (number > 0)...
Kotlin If Statement Example
Code: fun main(args: Array<String>) { /*Traditional if else statement in Programming. if...