Kotlin - Hello World
In this article, you will learn to write Hello World program in Kotlin
![Kotlin - Hello World](/content/images/size/w2000/2021/06/Green-and-White-Illustration-Science-Class-Education-Presentation--7---1-.png)
You may have heard of the Hello World
program if you have read any programming book before. it's frequently used to introduce a new programming language.
Let's explore how Hello World
program works in Kotlin.
First of all open IntelliJ IDEA , then File -> New -> Project
and give it a name for the project. Select Console Application
then Next
![](https://mobiledevtutorials.com/content/images/2021/06/Screenshot-2021-06-07-at-23.13.17-2.png)
On this page, I changed the Test framework to None
. For now, we don't need any testing framework.
![](https://mobiledevtutorials.com/content/images/2021/06/Screenshot-2021-06-07-at-23.15.04.png)
When we created the project. Open main.kt
file, you will see already the Hello World
code.
![](https://mobiledevtutorials.com/content/images/2021/06/Screenshot-2021-06-07-at-23.18.44.png)
fun main(args : Array<String>) {
println("Hello World!")
}
When you run the program, the output will be ( you can click green arrow to run program)
Hello World!
![](https://mobiledevtutorials.com/content/images/2021/06/Screenshot-2021-06-08-at-00.38.40.png)
That's all, You wrote your first program in Kotlin.