标签:ring 查找替换 use not div system int out mic
String s = "abcdabc"; String tt = "bc"; String ttt = "e"; int index = 0; while (s.indexOf("bc", index) != -1) { index = s.indexOf("bc", index); s = s.substring(0, index) + ttt + s.substring(index + tt.length()); } System.out.println(s);
标签:ring 查找替换 use not div system int out mic
原文地址:http://www.cnblogs.com/apanda009/p/7952874.html