成长的烦恼(新手提问) System.out.println("你要打印的内容"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public static void main(String args[]){ string tempStr=Replace("a","b","c") System.out.println(tempStr);} public String Replace(String s, String s1, String s2) { String s3 = ""; int i = s.length(); int j; while((j = s2.indexOf(s)) != -1) { s3 = s3 + s2.substring(0, j); s3 = s3 + s1; s2 = s2.substring(j + i); } s3 = s3 + s2; return s3; } public static void main(String args[]){ string tempStr=Replace("s","s1","s2") System.out.println(tempStr); } public class test { public static String Replace(String s, String s1, String s2) { String s3 = ""; int i = s.length(); int j; while((j = s2.indexOf(s)) != -1) { s3 = s3 + s2.substring(0, j); s3 = s3 + s1; s2 = s2.substring(j + i); } s3 = s3 + s2; return s3; } public static void main(String args[]){ String tempStr=Replace("s","s1","s2"); System.out.println(tempStr); } public class Testput{public String Replace(String s, String s1, String s2) { String s3 = ""; int i = s.length(); int j; while((j = s2.indexOf(s)) != -1) { s3 = s3 + s2.substring(0, j); s3 = s3 + s1; s2 = s2.substring(j + i); } s3 = s3 + s2; return s3; } public static void main(String args[]){ String testStr=Replace("s","s1","s2"); System.out.println(testStr); } } Department为自关联表——我想查询出没有子部门集合的所有上级部门,HQL不明白该怎么写 java中关于js<%%>的问题 为何在应用正式发布的时候不选tomcat EJB新手求救! Struts Hibernate 与J2EE有什么关系 hibernate+struts的问题 一个表和多个表的右连接标准sql怎么写? 为什么必须用方法的参数final? 一個關於字符急的問題 大家幫忙給看看了 xml中sax的问题 在windows+tomcat5环境下,如何实现SSL的双向认证? 请问 在java中|这个字符如何读取出来
public static void main(String args[]){
string tempStr=Replace("a","b","c")
System.out.println(tempStr);}
{
String s3 = "";
int i = s.length();
int j;
while((j = s2.indexOf(s)) != -1)
{
s3 = s3 + s2.substring(0, j);
s3 = s3 + s1;
s2 = s2.substring(j + i);
}
s3 = s3 + s2;
return s3;
} public static void main(String args[]){
string tempStr=Replace("s","s1","s2")
System.out.println(tempStr);
}
public static String Replace(String s, String s1, String s2)
{
String s3 = "";
int i = s.length();
int j;
while((j = s2.indexOf(s)) != -1)
{
s3 = s3 + s2.substring(0, j);
s3 = s3 + s1;
s2 = s2.substring(j + i);
}
s3 = s3 + s2;
return s3;
} public static void main(String args[]){
String tempStr=Replace("s","s1","s2");
System.out.println(tempStr);
}
public String Replace(String s, String s1, String s2)
{
String s3 = "";
int i = s.length();
int j;
while((j = s2.indexOf(s)) != -1)
{
s3 = s3 + s2.substring(0, j);
s3 = s3 + s1;
s2 = s2.substring(j + i);
}
s3 = s3 + s2;
return s3;
}
public static void main(String args[]){
String testStr=Replace("s","s1","s2");
System.out.println(testStr);
}
}