A minimal Kotlin application needs a main entry point. On the JVM this is the top-level function fun main(): Unit (Unit is Kotlin’s void). Unlike Java, you do not need to wrap it in a class for simple programs — the compiler generates a facade class under the hood.
Anatomy of Main.kt
Content is available with subscription.
Get full access to all courses on the platform for one year with a single payment.
▼
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.