Let's start by adding Kotlin to an existing Java project. To get started, walk through the following steps:
- Download or check out the code from the following GitHub link: https://github.com/PacktPublishing/Mastering-Kotlin/tree/master/Chapter06.
- Open the Chapter06 project with IntelliJ IDEA. Once the project is open in IntelliJ, you should see the following Main.java file with a simple Hello World example:
- To verify that it is building correctly, you can click on one of the green arrow icons in the editor and select Run Main.main(). On clicking, you should see Hello World! printed out to the ...