while (true) {
StringBuffer sb = new StringBuffer();
int index = tmpMailContent.indexOf("$");
if (index>=0) {
if (index>0) {
sb.append(tmpMailContent.substring(0,index));
}
sb.append("$");
sb.append(tmpMailContent.substring(index+1));
tmpMailContent = sb.toString();
} else {
break;
}
}
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/78156/viewspace-1020305/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/78156/viewspace-1020305/