StringBuffer添加换行

public class TestStringBuffer {app

public static void main(String[] args) {jsp

StringBuffer sb = new StringBuffer("hello\nworld");spa

// sb.append("\n");it

// String another = "world";io

System.out.println(sb.toString());class

// System.out.println(another);nw

}static

}co


或者:new

    .jsp页面

    StringBuffer sb = new StringBuffer();

    sb.append("<br/>");

    sb.toString();

相关文章
相关标签/搜索