摘要:
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
苏轼的红烧肉
阅读(197)
评论(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
苏轼的红烧肉
阅读(717)
评论(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
苏轼的红烧肉
阅读(472)
评论(0)
推荐(0)

浙公网安备 33010602011771号