slides for RivieraDev

This commit is contained in:
Dmitry Jemerov
2011-10-18 19:33:23 +02:00
parent 407882eb70
commit abbb31080f
2 changed files with 18 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
namespace HelloNames
fun main(args : Array<String>) {
var names : String = ""
for (i in args.indices) {
names += args[i]
if (i + 1 < args.size)
names += ", "
}
// string templates
println("Hello, $names!")
}
fun println(message : String) {
// System.out is a nullable field
System.out?.println(message)
}