Kotlin cheatsheet

Create a function

fun main() {                        // 2
    println("Hello, World!")        // 3
}
// Print with newline, I.E. move cursor to new line.
println("Hello Werldz!")
// Print without adding newline
print("Enter text: ")

Prompt for input and print to console

print("Enter text: ")
val stringInput = readLine()!!
println("You entered: $stringInput")