belongs to collection: Kotlin programming Exercises
Write a program in Kotlin to get length of the given string
He was cryling very loud.
Solution:
fun main(args : Array<String>) { val s = "He was cryling very loud." val str = "$s.length is ${s.length}" println(str) }
Output:
He was cryling very loud..length is 25
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Solution:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answerHe was cryling very loud..length is 25