Hello World!!!

Lets take a first step in writing Kotlin Program. Like learning of every new Programming Language starts with Hello World!!! Program, here we will do the same. Install Android Studio 3.0 and if you use an earlier version, you’ll need to install the Kotlin plugin. Go to File | Settings | Plugins | Install JetBrains plugin… and then search for and install Kotlin.

 

Creating a project

First step to start a project is to create a new project by clicking File -> New -> New Project and give appropriate name to the project and enable Kotlin support on this screen.

 

Screen Shot 2017-07-13 at 11.22.00 AM

Now choose android version

1-create-new-project.png

Choose the activity type you are interested in:

2-create-new-project.png

Name the Activity and press Finish

3-create-new-project.png

Now add the following code for simple Hello, World!!! program

fun main(args: Array<String>) {
 println("Hello, world!!!")
}

Now Run the program

Leave a comment