This is a Big World.
  Oh, this is Fruit
  DLfijewfiawhthis ifevaw
  this is a go.这几句话,如何找出
his i

解决方案 »

  1.   

    不好意思,我理解错误!回复人: masse(当午) 
    最大公共子串数据结构和算法里的经典问题
    确实是个经典问题!
      

  2.   

    public static void main(String[] args) {
    String str = "This is a Big World."+
                          "Oh, this is Fruit"+
                         "DLfijewfiawhthis ifevaw"+
                          "this is a go.";
                 int i = str.indexOf("his i");//从开始位置寻找第一个"his i";
    }给你写了个简单的,怎么找出所有的,自己考虑一下吧!
    实在想不出来了,再找我!