- 1.charAt(int index)
- 2.int compareTo(String anotherString)
- 3.boolean contains(charSequence s)
- 4.endsWith
- 5.equals
- 6.equalsIgnoreCase
- 7.getBytes()
- 8.indexOf(String str)
- 9.isEmpty()
- 10.length()
- 11.lastIndexOf(String str)
- 12.replace
- 13.split 切割
- 14.startWith
- 15.substring
- 16.
- 17.toCharArray()
- 18. toLowerCase()
- 19.toUpperCase()
- 20.trim()
- 21.valueOf 静态方法
1.charAt(int index)
2.int compareTo(String anotherString)
- 一一比较两个字符串中的元素
3.boolean contains(charSequence s)
- 判断前面的字符串中是否包含后面的子字符串
4.endsWith
- 判断当前的字符串是否以某个字符串结尾

5.equals

6.equalsIgnoreCase

7.getBytes()

8.indexOf(String str)
- 判断某个字符串在当前字符串中第一次出现的索引

9.isEmpty()
- 判断某个字符串是否为空
10.length()

11.lastIndexOf(String str)

12.replace

13.split 切割

14.startWith

15.substring
截取

16.

17.toCharArray()

18. toLowerCase()
- 转换为小写
19.toUpperCase()
- 转换为大写
20.trim()

21.valueOf 静态方法

