a = a.substring(index+toFind.length());方法:public String substring(int beginIndex,
                        int endIndex)没写endIndex 表示截取到最后吗?

解决方案 »

  1.   

    我只知道api文档  还没见过sdk文档
    哪里查
      

  2.   

    其实就是API文档,可能他想表达的是JDK文档
      

  3.   

    默认是截取到最后的,现在中文的API1.6的上网下一个吧~
      

  4.   

    是表示截取到最后public String substring(int beginIndex)    Returns a new string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string.
      

  5.   

    http://ishare.iask.sina.com.cn/f/12502719.html?from=like去下一个吧
      

  6.   

    public String substring(int beginIndex,int endIndex)
    范围beginIndex到endIndex - 1
    例:
    String str = "abcd".substring(1,3);//from 1 to 2;str = "bc";
      

  7.   

    public String substring(int beginIndex)
    范围beginIndex 到 str.length() - 1