1、length() 字符串的长度
2、charAt() 截取一个字符
3、 getChars() 截取多个字符
4、getBytes()替代getChars()将字符存储在字节数组中
5、toCharArray()
6、equals()和equalsIgnoreCase() 比较两个字符串
7、regionMatches() 比较一个字符串中特定区域与另一特定区域,它有一个重载的形式允许在比较中忽略大小写
8、startsWith()和endsWith(),startsWith()方法决定是否以特定字符串开始,endWith()方法决定是否以特定字符串结束
9、equals()和==:equals()方法比较字符串对象中的字符,==运算符比较两个对象是否引用同一实例
10、compareTo()和compareToIgnoreCase() 比较字符串
11、indexOf()和lastIndexOf()
12、substring()
13、concat() 连接两个字符串
14 replace() 替换
15、trim() 去掉起始和结尾的空格
16、valueOf() 转换为字符串
17、toLowerCase() 转换为小写
18、toUpperCase() 转换为大写。