str.substring(int beginIndex,int endIndex)
indexOf(int ch) //返回特定字符的索引(下标)
/*
* Examples:
* "hamburger".substring(4, 8) returns "urge"
* "smiles".substring(1, 5) returns "mile"
* @param beginIndex the beginning index, inclusive.开始下标包含在内
* @param endIndex the ending index, exclusive.结束下标不包含在内
* @return the specified substring.
* @exception IndexOutOfBoundsException if the
* {@code beginIndex} is negative, or
* {@code endIndex} is larger than the length of
* this {@code String} object, or
* {@code beginIndex} is larger than
* {@code endIndex}.
*/