📜  stringbuilder 追加新行 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:58.004000             🧑  作者: Mango

代码示例1
StringBuilder r = new StringBuilder();

//It should be
r.append("\n");

//But I recommend you to do as below, 
//beacuse it is system independent
r.append(System.getProperty("line.separator"));