String substring(int beginIndex)
int codePoint At(int index)
int offseByCodePoint(int startIndex, int cpCount)
boolean startsMith(String prefix)
int indexOf(String str)
返回字符串str或代码点cp匹配的第一个子串的开始位置
new String(int[] codePoints, int offset, int count)
用数组中offset开始的count个码点构造一个字符串
boolean equals(Object other)
boolean equalsIgnoreCase(String other)
int compareTo(String other)
int lastIndexOf(String str)
返回与字符串str或代码点cp匹配的最后一个子串的开始位置
这个位置从原始串尾端或from Index开始计算
int codePointCount(int start Index,int end Index)
返回start Index和end Index-1之间的代码点数量
String replace(CharSwquence oldString,CharSequence newString)
返回一个新字符串
这个字符串用newString代替原始字符串中所有oldStrings
可以用String或StringBuilder对象作为CharSequence参数
String join(CharSequence delimiter,CharSequence... element)