Debian Codegraph @

tests/inputs/hello.kt

raw
1 /* http://confluence.jetbrains.com/display/Kotlin/Hello%2C+world!
2 */
3 fun main(args : Array<String>) {
4 val language = if (args.size == 0) "EN" else args[0]
5 println(when (language) {
6 "EN" -> "Hello!"
7 "ES" -> "¡Hola!"
8 // will this render?
9 "RU" -> "Привет!"
10 else -> "Sorry, I can't greet you in $language yet"
11 })
12 }