clear

JS
1.3

Clears the content of this string builder making it empty and returns this instance.

import java.util.Locale
import kotlin.test.*

fun main(args: Array<String>) {
//sampleStart
val builder = StringBuilder()
builder.append("content").append(1)
println(builder) // content1

builder.clear()
println(builder) //
//sampleEnd
}