Before we start, let me just give some tips how to configure your IDE to work more smoothly with Kotlin.

Kotlin for IntelliJ IDEA

Kotlin was written by Jet Brains therefore it comes build-in with IntelliJ IDEA. If you go to File->Settings->Plugins and look for Kotlin you will see the plugin is already installed, you will see the version number and if you right click you will notice that you cannot uninstall the plugin. We can consider it as a fundamental part of the IDE.

You can check the plugins for updates. Go to Tools->Kotlin->Configure Kotlin Plugin Updates. Here you can choose to switch to an early access version if you feel like it or just check and install newer version of the plugin.

To create a project, go to File->New->Project. Select Kotlin and Kotlin (JVM). Choose a project name and directory and Finish, your empty Kotlin project will be generated. Now if you right click the source directory and go to New, you will the option Kotlin File/Class. If you go for the file option, you will get a *.kt file, which after you build, the compiler will make it into *kt.class file.

Kotlin for Eclipse

Unlike with IntelliJ, Eclipse doesn’t have Kotlin plugin installed for you. You will have to do it yourself. Simply go to the Marketplace, search for the Kotlin plugin, install it, go through the licenses and restart the IDE.

Once this is all done, just go to File->New->Project. You will find there Kotlin, add a project name and finish. The plugin works very well inside Eclipse.

Starter pack:

  1. Introduction
  2. Object Oriented Programming
    1. Interfaces
    2. Classes
      1. Constructors
    3. Companion Object
    4. Data Classes
  3. Functional programming
    1. What is Functional programming
    2. Higher-order functions
    3. Transforming data
    4. Filtering Data
  4. Kotlin and the Java Ecosystem
  5. Testing with Spek


External resources: