To create a new Kotlin class, right-click on the folder and choose New | Other, as shown in the following screenshot:
Choose class, as shown in the following screenshot:
Give your new Kotlin class a name (HelloWorld) and a package (com.mastering.spring.kotlin.first). Click on Finish.
Create a main function, as shown in the following lines of code:
fun main(args: Array<String>) {
println("Hello, world!")
}