int indexOf(int ch,int fromIndex)函数:就是字符ch在字串fromindex位后出现的第一个位置.没有找到返加-1 indexOf public int indexOf(int ch) 返回指定字符在此字符串中第一次出现处的索引。如果在此 Str……