public class ManStringBuilderExt
extends java.lang.Object
| Constructor and Description |
|---|
ManStringBuilderExt() |
| Modifier and Type | Method and Description |
|---|---|
static void |
set(java.lang.StringBuilder thiz,
int index,
char ch)
Implements the index operator for assignment such as
text[i] = 'x' |
public static void set(java.lang.StringBuilder thiz,
int index,
char ch)
text[i] = 'x'
The character at the specified index is set to ch. This
sequence is altered to represent a new character sequence that is
identical to the old character sequence, except that it contains the
character ch at position index.
The index argument must be greater than or equal to
0, and less than the length of this sequence.
index - the index of the character to modify.ch - the new character.java.lang.IndexOutOfBoundsException - if index is
negative or greater than or equal to length().Copyright © 2021. All rights reserved.