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();

相關文章
相關標籤/搜索