First Program in Kotlin
Learn to create your first program in Kotlin and explore variations of the main function.
We'll cover the following...
We'll cover the following...
The Hello, World program
The first step in our Kotlin adventure is to write a minimal program in this language. Yes, it’s the famous Hello, World program. This is what it looks like in Kotlin:
Kotlin 1.5
fun main() {println("Hello, World")}
Line 1: We define the
mainfunction of the Kotlin program withfun...