从一个完整的字符串中判定制定的内容是否存在
public boolean contains(CharSequence s)判断一个子字符串是否存在
public int indexOF(String str)从头开始查找指定字符串的位置,查到了返回位置的开始索引,如果查不到返回-1
public int indexOF(String str,int fromIndex)从指定位置开始查找子字符串的位置
public int lastInDexOF(String str)由后向前查找子字符串的位置
public int lastIndexOF(String str,int formIndex)从指定位置由后向前查找子字符串位置、
public boolean startWith(String prefix)从头判断是否以指定的字符串开头
public boolean startsWith(String prefix,int toffset)从指定位置开始判断是否以指定字符串开头
public boolean endsWith(String suffix)判断是否以指定的字符串结尾