char charAt(int index)
返回给定位置的代码单元。
int codePointAt
返回从给定位置开始或结束的代码点。
int offsetByCodePoints(int starIndex,int stCount)
返回从startIndex代码点开始,位移 stCount后的代码点索引。
int compareTo(String one)
按字典顺序,如位于在字符串one之前,返回一个负数 ; 如位于在字符串one之后,返回一个正数 ; 如两个字符串相等,则返回0。
boolean endsWith(String berry)
如果字符串与berry结尾,返回true。
boolean equalsIgnorCase(String berry)
如果字符串与berry相等(忽略大小写),返回true。
int length()
返回字符串的长度。
int codePointCount(int startIndex , int endIndex)
返回startIndex与endIndex -1之间的代码数量。没有匹配成对的代码字符将计入代码点。
String replace(CharSequence oldString,CharSequence newString)
返回一个新字符串。这个字符串用newString取代原字符串oldString。
boolean startsWith(String berry)
如果字符串与berry字符串开始,返回true。
String substring(int beginIndex , int endIndex)
返回一个新字符串。(从beginIndex 到 endIndex-1的所有代码单元)。
String toLowerCase()
返回一个新字符串。这个字符串将原始字符串中的所有大写字母改成小写字母。
String toUpCase()
返回一个新字符串。这个字符串将原有字符串的所有小写字母改成大写字母。
String trim()
返回一个新字符串。这个字符串将删除原始字符串头部和尾部的空格。