curric

View on GitHub

./curric/kotlin/Hello_World/

Hello World, the Re-run

Similar to Java, Kotlin has an entry point. This entry point is denoted as the main method

fun main() {
    println("Hello World")
}

All statements no longer require a semicolon to be at the end, a new line will suffice enough for the compiler to recognize it is a new statement. Comments are still created with // before the comment. Instead of System.out.print and System.out.println, Koltin shortened these methods to just print and println. the fun keyword is Kotlin’s way to define a method.