aboutsummaryrefslogtreecommitdiff
path: root/examples/gradle/dokka-gradle-example/src/main/kotlin/demo/HelloWorld.kt
blob: e37fcfb70399fd3789679f0b675c5bd5d779b085 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package demo

/**
 * This class supports greeting people by name.
 *
 * @property name The name of the person to be greeted.
 */
class Greeter(val name: String) {

    /**
     * Prints the greeting to the standard output.
     */
    fun greet() {
        println("Hello $name!")
    }
}

fun main(args: Array<String>) {
    Greeter(args[0]).greet()
}