Android
Getting Started with Kotlin – Tutorial 1 – Basic Syntax, Variables and Data Types
In the previous tutorial we saw the basic Hello World program written in Kotlin. Lets examine it more deeply.
1 2 3 |
fun main(args: Array<String>) { println("Hello, World!") } |
Notice something weird? The main function is defined all by itself, its not inside a class, this is because Kotlin treats functions as first class citizens. “What does that means?” Read more…