Kotlin First Program on intelliJ

In this page we will learn how to create and run out kotlin program on IntelliJ IDE .Let's create a Kotlin first example using IntelliJ IDEA IDE.


Steps to Create First Example

Steps

  Open IntelliJ IDEA and click on Create New Project'.

  Select Kotlin option and Click Next.

  Write the name of the project and click finish.

  Write the name of the project and click finish.

  Create a new Kotlin file to run Kotlin first example. Go to src ->New->Kotlin File/Class.

  Write the name of Kotlin File/Class , In my case i have written First.

  Write the main function in First Kotlin file as in pic below.

How to Run above program

Now we can run this program by right clicking on file and select Run option.