Kotlin is a statically-typed programming language, developed by JetBrains. If you have basic knowledge of Java, you will be able to learn Kotlin in no time. This Kotlin tutorial is designed for beginners so you would be able to understand Kotlin programming even if you have no knowledge of Java.
This is a strongly statically typed language that runs on JVM. In 2017, Google announced Kotlin is an official language for android development. Kotlin is an open source programming language that combines object-oriented programming and functional features into a unique platform.
Now let's start with Environment Setup with:
- Environment Setup with Eclipse
- Environment Setup with IntelliJ
Installing Kotlin Plugin with Eclipse
Step1: First of all, you need the Eclipse IDE installed on your system. You can download its latest version from http://www.eclipse.org/downloads/. Then choose Help->Eclipse Marketplace
Step2: To add the Kotlin support to your Eclipse IDE, install the Kotlin Plugin for Eclipse. We recommend installing the Kotlin plugin from Eclipse Marketplace. One option is to drag this button into a running Eclipse window:
Step3: Once install Kotlin plugin accept install and finish. Now you are ready to work with Kotlin with Eclipse.
Installing Kotlin Plugin with IntelliJ
First of all we need IntelliJ IDEA software in our system, if not please download and install latest version. Once installation is complete we are ready to work with Kotlin with IntelliJ.
Let's create 'Hello world' program in Kotlin with IntelliJ.
Step1: First of all choose project to create:
Step2: Choose template for project:
Step3: Select project language Kotlin and finish.
Finally you have Android Kotlin Project as shown in below image. And start working with project accordingly.