package API;public class String {//String常用API//char charAt(int index)//int codePointAt(int index)//int offsetByCodePoints(int startIndex, int cpCount)//int compareTo(String other)//IntStream codePoints()//new String(int[] codePoints, int offset, int count)//boolean isEmpty()//boolean isBlank()//boolean equals(Object other)//boolean equalsIgnoreCase(String other)//boolean startsWith(String prefix)//boolean endsWith(String suffix)//int index0f(String str)//int indexOf(String str, int fromIndex)//int indexOf(int cp)//int indexOf(int cp, int fromIndex)//int lastIndexOf(String str)//int lastIndexOf(String str, int fromIndex)//int lastIndexOf(int cp)//int lastIndexOf(int cp, int fromIndex)//int length()//int codePointCount(int startIndex, int endIndex)//String replace(CharSequence oldString, CharSequence newString)//String subString(int beginIndex)//String subString(int beginIndex, int endIndex)//String toLowerCase()//String toUpperCase()//String strip()//String stripLeading()//String stripTrailing()//String join(CharSequence delimiter, CharSequence…elements) }