字符串

子串

String String.substring(int pos)
从 pos开始一直截取到尾部

查找

int String.indexOf(String substring)
返回 substring第一次出现的位置

你可能感兴趣的:(字符串)