stringbuilder append string code example
Example 1: stringbuilder append new line
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"));
Example 2: stringBuilder append string
public StringBuilder append(String str)