// Kotlin Strings Example // Source code file Strings.kt // Various ways to represent // String objects. Use """ // to allow embedded line feeds. fun main(args: Array) { var s = "dog" var t = "This\nis\na\ntest." var u = """ This is a test.""" println(s) println(t) println(u) // Don't use single quotes for // strings. They are used to define // Char variables just like Java. var c = 'A'; println(c) println(c.toInt( )) }