Answers for "what is stringbuilder in kotlin"

2

string builder kotlin

val a = "Hello"
val b = "World"

val sb = StringBuilder()
sb.append(a).append(b)
val c = sb.toString()

print(c)
Posted by: Guest on September-05-2021

Code answers related to "what is stringbuilder in kotlin"

Browse Popular Code Answers by Language