本文最后更新于:2022-07-26T16:29:00+08:00
String
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| int length();
boolean isEmpyt();
char charAt(int index);
int compareTo(String str);
boolean equals(String str);
int indexOf(char ch);
String[] split(String regex);
String substring(int beginIndex, int endIndex);
String toLowerCase();
String trim();
xxx.toString();
String.valueOf();
Integer.parseInt(String str);
char[] arr = str.toCharArray();
String str = new String(arr);
|
StringBuffer
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| StringBuffer s = new StringBuffer();
append(String str);
charAt(int index);
delete(int start, int end);
deleteCharAt(int index);
reverse();
|
Java字符串的常见使用方法
http://example.com/2022/07/26/Java字符串的常见使用方法/