Learn Kotlin: Hello World!

Write your first Kotlin program on IntelliJ IDEA.

The “Hello, World!” — tradition of every new programmer.

— Prerequisite —

— Steps —

Step 1 : open your IntelliJ IDEA.

IntelliJ IDEA’s welcome page

Step 2 : configure the new project.

Project configuration #1
Project configuration #2

Step 3 : wait for the IntelliJ IDEA to setup the project

Importing gradle project

Step 4 : open the main.kt file in your project

main.kt file
Hello world code

Step 5 : running your first Kotlin code

Step 6 : program outputs

Program output

— Code explanation —

This is the code to print out “Hello World!” to the console.

— Learn Kotlin Series —

— Further Reading —

Android Developer. Currently residing in Jambi, Indonesia. https://romnan.my.id