char charAt(int index) |
返回此序列中指定索引处的char 值。 |
void ensureCapacity(int minimumCapacity) |
确保容量至少等于指定的最小值。 |
void getChars(int begin, int end, char[] dst, int dstBegin) |
将字符从此序列复制到目标字符数组dst 。 |
int indexOf(String str) |
返回第一次出现的指定子字符串在该字符串中的索引。 |
int indexOf(String str, int fromIndex) |
从指定的索引处开始,返回第一次出现的指定子字符串在该字符串中的索引。 |
int lastIndexOf(String str) |
返回最右边出现的指定子字符串在此字符串中的索引。 |
int lastIndexOf(String str, int fromIndex) |
返回最后一次出现的指定子字符串在此字符串中的索引。 |
int length() |
返回长度(字符数)。 |
void setCharAt(int index, char ch) |
将给定索引处的字符设置为ch |
void setLength(int newLength) |
设置字符序列的长度。 |
CharSequence subSequence(int start, int end) |
返回一个新的字符序列,该字符序列是此序列的子序列。 |
String substring(int start) |
返回一个新的String ,它包含此字符序列当前所包含的字符子序列。 |
String substring(int start, int end) |
返回一个新的String ,它包含此序列当前所包含的字符子序列。 |
String toString() |
返回此序列中数据的字符串表示形式。 |