自己写一个类阿jdk这么小不要要求太多阿
解决方案 »
- org.hibernate.exception.GenericJDBCException: Cannot open connection
- 求救啊!搞了两天还是这结果:The requested resource (/libt/test/AddBook) is not available
- java.lang.ClassCastException: testjpa.book.WebBookstoreBooks cannot be cast to testjpa.book.WebBooks
- 请高手指点一下思路!!闷了一天了!!
- jsp实时更新数据
- 使用Spring MVC框架进行开发遇到的问题
- jsp 一个分词包怎样载入使用..先谢
- 哪里有用jsp做聊天室的论文啊
- 150分求jsp中重定向的目标问题~~~~~~~~~~~~~~~~~~~~~~
- 有关数据库的一个问题
- 关于APACHE和TOMCAT结合使用的问题?
- 用SmartUpload类上传文件有大小限制吗??或者ENCTYPE='multipart/form-data'的form对于上传文件大小有限制??为什么大于1M的文件一上传就显示找不到页面啊!!
把mail 留下
靠!
public class os_character {
String result=null;
public String replace(String con,String tag,String rep){
int j=0;
int i=0;
int k=0;
String retu="";
String temp=con;
int tagc=tag.length() ;
while(i<con.length() ){
if(con.substring(i).startsWith(tag)){
temp=con.substring(j,i)+rep;
retu+=temp;
i+=tagc;
j=i;
}
else
{
i+=1;
}
}
retu=con.substring(j);
return retu;
}
while ( s!= null && (s.indexOf(oldStr) != -1) ) {
s = s.substring(0,s.indexOf(oldStr)) + newStr + s.substring(s.indexOf(oldStr) + oldStr.length());
}
return s;
}