Kotlin Code: fun main(args: Array<String>) { var number = 20 number *= 4 println("number =...
Category - Kotlin
Kotlin Arithmetic Operator Examples
Kotlin Code: fun main(args: Array<String>) { val val1 = 7.3 val val2 = 3.2 var result: Double...
Kotlin Data Types
Following Kotlin program example to show data types Numbers, Characters and boolean. Byte : The...
How to Declare Variable in Kotlin
In Kotlin either var or val keyword is used to declare the variable. We don’t want to specify...
How to Comment in Kotlin
As like Java, there are thee types of comments in Kotlin. 1. Single Line Comment 2. Multi Line...
How to Print Hello World in Kotlin
Kotlin is a statically-typed programming language that runs on the Java virtual machine and also...