Running a Kotlin class

To run a Kotlin class, right-click on the HelloWorld.kt file and click on Run As | Kotlin Application, as shown in the following screenshot:

Hello, World is printed on the console, as shown here:

In this section, we quickly created a Kotlin project in Eclipse and ran a simple Kotlin application. In the next section, let's create a Spring Boot project using Kotlin.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset