public class Api {@Testpublic void StringApi(){// equals() 判断内容是否相同区分大小写// equalsIgnoreCase() 判断内容是否相同不区分大小写// length() 获取长度// charAt(int index) 获取某个索引位置的字符// toCharArray() 字符串转换为字符数组// substring(int beginIndex,int endIndex) 截取内容,包前不包后// substring(int beginIndex) 从当前索引一直截取// replace(CharSequence targer,CharSequence replacement) 对文字进行替换// contains(CharSequence s) 判断字符中是否存在// starsWiths(String prefix) 已什么字符开始// split(String s) 分割}@Testpublic void ArraryApi(){// add() 添加一个元素在数组的最后一位// get() 获取某个索引下的元素值// size() 获取集合的个数// remove(int index) 删除某个索引位置下的元素值,并返回被删除的元素值// remove(Object o) 直接删除元素值,返回布尔值// set(int index,E element) 修改某个位置的元素值,返回修改前的值//}}