← Docs
kotlin-stdlib / kotlin.text / java.lang.StringBuilder / set

set

JVM
1.0
operator fun StringBuilder . set ( index : Int , value : Char )
(source)

Sets the character at the specified index to the specified value .

Exceptions

IndexOutOfBoundsException - if index is out of bounds of this string builder.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .