denopark logo
Deno Park
日本语
中文
English
首页游戏排行升级
Java: StringBuffer
20
JavaScript API 词典
No.单词释义
1append()public StringBuffer append(String s):将指定的字符串追加到此字符序列。
2capacity()int capacity():返回当前容量。
3charAt()char charAt(int index):返回此序列中指定索引处的 char 值。
4delete()public delete(int start, int end):移除此序列的子字符串中的字符。
5ensureCapacity()void ensureCapacity(int minimumCapacity):确保容量至少等于指定的最小值。
6getChars()void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin):将字符从此序列复制到目标字符数组 dst。
7indexOf()int indexOf(String str):返回第一次出现的指定子字符串在该字符串中的索引。
8insert()public insert(int offset, int i):将 int 参数的字符串表示形式插入此序列中。
9lastIndexOf()int lastIndexOf(String str):返回最右边出现的指定子字符串在此字符串中的索引。
10length()int length():返回长度(字符数)。
11replace()replace(int start, int end, String str):使用给定 String 中的字符替换此序列的子字符串中的字符。
12reverse()public StringBuffer reverse():将此字符序列用其反转形式取代。
13setCharAt()void setCharAt(int index, char ch):将给定索引处的字符设置为 ch。
14setLength()void setLength(int newLength):设置字符序列的长度。
15subSequence()CharSequence subSequence(int start, int end):返回一个新的字符序列,该字符序列是此序列的子序列。
16substring()String substring(int start):返回一个新的 String,它包含此字符序列当前所包含的字符子序列。
17toString()String toString():返回此序列中数据的字符串表示形式。