Skip to content
Justice Tech School

Kotlin Get Started

Use IntelliJ IDEA or Android Studio, or try code in the online Kotlin Playground. A program starts in fun main. Kotlin files end in .kt.

Example
fun main() {
    println("Hello World")
}
// Compile: kotlinc hello.kt -include-runtime -d hello.jar
// Run:     java -jar hello.jar

Exercise

File extension.

hello.

Quiz Test

Which extension do Kotlin files use?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.