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'.

      Steps-to-Create-First-Example638-1247591736.jpg
    • Select Kotlin option and Click Next.

      Steps-to-Create-First-Example638-235446125.jpg
    • Write the name of the project and click finish.

      Steps-to-Create-First-Example638-2086760087.jpg
    • Write the name of the project and click finish.

      Steps-to-Create-First-Example6381405642172.jpg
    • Create a new Kotlin file to run Kotlin first example. Go to src ->New->Kotlin File/Class.

      Steps-to-Create-First-Example638-1179648152.jpg
    • Write the name of Kotlin File/Class , In my case i have written First.

      Steps-to-Create-First-Example6381106031102.jpg
    • Write the main function in First Kotlin file as in pic below.

      Steps-to-Create-First-Example6382128614569.jpg
  • How to Run above program

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

    How to Run  above program

What next?

The next topic is kotlin variable

Share this page