indexOf(String str, int fromIndex) 
          Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.50是查找的起始位置

解决方案 »

  1.   

    从字符串第50个字符的位置向后查找请找一个 J2SE 的 API 帮助文档,便于你的学习
      

  2.   

    why last occurrence of 'a' from index 10 is:
    s.indexof('a',10),not s.lastindexof('a',10)
    but last occurrent of 'a'if
    s.lastindexof('a')
      

  3.   

    50是你要查找的字符串的起始位置,如:str.indexOf('a',50); 意思是:查找str中从第50个字符开始a的首次出现的位置。