Added print output for template string command

This commit is contained in:
Bharat Reddy 2017-07-07 11:26:29 +01:00
parent b67ac8da07
commit 6350beb6e6

View File

@ -65,7 +65,7 @@ fun helloWorld(val name : String) {
A template expression starts with a dollar sign ($). A template expression starts with a dollar sign ($).
*/ */
val fooTemplateString = "$fooString has ${fooString.length} characters" val fooTemplateString = "$fooString has ${fooString.length} characters"
println(fooTemplateString) println(fooTemplateString) // => My String Is Here! has 18 characters
/* /*
For a variable to hold null it must be explicitly specified as nullable. For a variable to hold null it must be explicitly specified as nullable.