| 1 |
char charAt(int index) 此方法返回指定索引处的char值。 |
| 2 |
int codePointAt(int index) 此方法返回指定索引处的字符(Unicode代码点)。 |
| 3 |
int codePointBefore(int index) 此方法在指定索引之前返回的字符(Unicode代码点)。 |
| 4 |
int codePointCount(int beginIndex, int endIndex) 此方法在该字符串的指定文本范围返回Unicode代码点的数。 |
| 5 |
int compareTo(String anotherString) 此方法按字典顺序比较两个字符串。 |
| 6 |
int compareToIgnoreCase(String str) 此方法按字典顺序比较两个字符串,不区分大小写的差异。 |
| 7 |
String concat(String str) 此方法串连指定字符串到该字符串的结尾。 |
| 8 |
boolean contains(CharSequence s) 当且仅当此指定序列字符串包含char值此方法返回true。 |
| 9 |
boolean contentEquals(CharSequence cs) 此方法比较该字符串与指定的CharSequence。 |
| 10 |
boolean contentEquals(StringBuffer sb) 此方法比较该字符串与指定的StringBuffer。 |
| 11 |
static String copyValueOf(char[] data) 此方法返回一个表示指定的数组字符序列的字符串。 |
| 12 |
static String copyValueOf(char[] data, int offset, int count) 此方法返回一个表示指定的数组中的字符序列的字符串。 |
| 13 |
boolean endsWith(String suffix) 此方法测试此字符串是否以指定的后缀结束。 |
| 14 |
boolean equals(Object anObject) 此方法让该字符串与指定的对象进行比较。 |
| 15 |
boolean equalsIgnoreCase(String anotherString) 此方法让这个字符串与另一个字符串进行比较,忽略大小写的考虑。 |
| 16 |
static String format(Locale l, String format, Object... args) 此方法返回使用指定的语言环境,格式字符串和参数将格式化字符串。 |
| 17 |
static String format(String format, Object... args) 此方法返回使用指定格式字符串和参数的格式化字符串。 |
| 18 |
byte[] getBytes() 此方法将此String解码使用平台的默认字符集的字节序列,并将结果存储到一个新的字节数组。 |
| 19 |
byte[] getBytes(Charset charset) 此方法将此String解码使用给定的字符集的字节序列,并将结果存储到一个新的字节数组。 |
| 20 |
byte[] getBytes(String charsetName) 此方法将此String解码使用的字符集命名为字节序列,并将结果存储到一个新的字节数组。 |
| 21 |
void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) 此方法从此字符串复制的字符到目标字符数组。 |
| 22 |
int hashCode() 此方法返回该字符串的哈希码。 |
| 23 |
int indexOf(int ch) 此方法返回该字符串指定字符第一次出现处的索引。 |
| 24 |
int indexOf(int ch, int fromIndex) 此方法返回的索引此字符串指定字符第一次出现处,指定开始搜索的索引处。 |
| 25 |
int indexOf(String str) 此方法返回该字符串指定的子串中第一次出现处的索引。 |
| 26 |
int indexOf(String str, int fromIndex) 此方法返回从指定的索引处索引此字符串指定的子字符串的第一次出现位置。 |
| 27 |
String intern() 此方法返回的字符串对象的规范化表示。 |
| 28 |
boolean isEmpty() 此方法返回true,当且仅当length()为0。 |
| 29 |
int lastIndexOf(int ch) 此方法返回该字符串指定字符最后一次出现处的索引。 |
| 30 |
int lastIndexOf(int ch, int fromIndex) 此方法返回的索引此字符串指定字符最后出现处,向后搜索从指定的索引处。 |
| 31 |
int lastIndexOf(String str) 此方法返回该字符串指定的子串的最右边出现处的索引。 |
| 32 |
int lastIndexOf(String str, int fromIndex) 此方法返回向后搜索从指定的索引位置,此字符串指定的子字符串的最后出现处的索引。 |
| 33 |
int length() 这个方法返回这个字符串的长度。 |
| 34 |
boolean matches(String regex) 此方法确定这个字符串是否匹配给定正则表达式。 |
| 35 |
int offsetByCodePoints(int index, int codePointOffset) 此方法返回这个字符串,是给定codePointOffset码点偏移的索引。 |
| 36 |
boolean regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len) 此方法测试如果两个字符串区域是相等忽略大小写。 |
| 37 |
boolean regionMatches(int toffset, String other, int ooffset, int len) 此方法测试如果两个字符串区域都是相等。 |
| 38 |
String replace(char oldChar, char newChar) 此方法返回通过用newChar更换所有oldChar出现在此字符串,产生一个新的字符串。 |
| 39 |
String replace(CharSequence target, CharSequence replacement) 此方法将替换该字符串相匹配的文字目标序列与指定的文字替换序列中的每个子字符串。 |
| 40 |
String replaceAll(String regex, String replacement) 此方法将替换此字符串匹配,用给定的正则表达式替换每个子字符串。 |
| 41 |
String replaceFirst(String regex, String replacement) 此方法将替换此字符串匹配给定的正则表达式,用给定替换的第一子字符串。 |
| 42 |
String[] split(String regex) 这种分割方法根据给定的正则表达式匹配这个字符串。 |
| 43 |
String[] split(String regex, int limit) 此分割方法根据给定的正则表达式匹配这个字符串。 |
| 44 |
boolean startsWith(String prefix) 此方法测试此字符串是否在开头使用指定的前缀。 |
| 45 |
boolean startsWith(String prefix, int toffset) 此方法测试此字符串开头的指定索引处的子字符串,开始是否使用指定的前缀。 |
| 46 |
CharSequence subSequence(int beginIndex, int endIndex) 此方法返回一个新的字符序列,这个序列的子序列。 |
| 47 |
String substring(int beginIndex) 此方法返回一个新的字符串,它是此字符串的一个子字符串。 |
| 48 |
String substring(int beginIndex, int endIndex) 此方法返回一个新的字符串,它是此字符串的一个子字符串。 |
| 49 |
char[] toCharArray() 此方法这个字符串到一个新的字符数组转换。 |
| 50 |
String toLowerCase() 此方法将所有在此字符串中的字符使用默认语言环境的规则为小写。 |
| 51 |
String toLowerCase(Locale locale) 此方法将所有在此字符串中的字符,以使用给定Locale的规则的小写形式。 |
| 52 |
String toString() 此方法返回的字符串本身。 |
| 53 |
String toUpperCase() 此方法使用默认语言环境的规则将这个字符串所有的字转为大写。 |
| 54 |
String toUpperCase(Locale locale) 此方法将所有在这个字符串的字符使用给定的语言环境的规则转换为大写。 |
| 55 |
String trim() 此方法返回字符串的副本,有开头和结尾的空格省略。 |
| 56 |
static String valueOf(boolean b) 此方法返回boolean参数的字符串表示形式。 |
| 57 |
static String valueOf(char c) 此方法返回char参数的字符串表示形式。 |
| 58 |
static String valueOf(char[] data) 此方法返回将char数组参数的字符串表示形式。 |
| 59 |
static String valueOf(char[] data, int offset, int count) 此方法返回将char数组参数的特定子数组的字符串表示形式。 |
| 60 |
static String valueOf(double d) 此方法返回double参数的字符串表示形式。 |
| 61 |
static String valueOf(float f) 此方法返回float参数的字符串表示形式。 |
| 62 |
static String valueOf(int i) 此方法返回int参数的字符串表示形式。 |
| 63 |
static String valueOf(long l) 此方法返回long参数的字符串表示形式。 |
| 64 |
static String valueOf(Object obj) 此方法返回Object参数的字符串表示形式。 |