Skip to content
Gallery
Kotlin
Share
Explore
Kotlin Documenation

icon picker
Basics

Basic Syntax

fun sum(a: Int, b: Int): Int {
return a + b
}

fun: Keyword to declare a function.
main: Name of the function. The entry point of a Kotlin application.
println: Function to print text to the console.

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.