摘要: public class Test1 { public static void main(String[] args) { getmaxsub("abcderfjkasdgk", "w"); } public static String getmaxsub(String a,String b){ if(a.length()0;i--) { ... 阅读全文
posted @ 2017-05-03 16:34 苏轼的红烧肉 阅读(192) 评论(0) 推荐(0) 编辑
摘要: public class Test2 { public static void main(String[] args) { String s="abkkcdkkefkkskk"; int sum=0; while(s.contains("kk")){ sum++; s=s.replaceFirst("kk", " "); ... 阅读全文
posted @ 2017-05-03 15:16 苏轼的红烧肉 阅读(709) 评论(0) 推荐(0) 编辑
摘要: public class Test7 { public static void main(String[] args) { String a="aba"; String b="baa"; while(a.length()!=0 && b.length()!=0 && a.length()==b.length()){ Str... 阅读全文
posted @ 2017-05-03 14:46 苏轼的红烧肉 阅读(449) 评论(0) 推荐(0) 编辑