日期:2014-05-20 浏览次数:20877 次
public class ReplaceTest {
public static void main(String[] args) {
String string = "<font size=3><em>java</em>好哈</font>";
System.out.println(string);
String s1 = string.replace("<em>","");
System.out.println(s1);
String s2 = s1.replace("</em>","");
System.out.println(s2);
String s3 = s2.replace("</font>","");
System.out.println(s3);
}
}