01
02
03
04
05
06
07
08
09
10
11
12
13
14
package basics.stringbuffer;
public class Main {
  private Main() {}
  static public void main (String[] args) {
    //stdlib.Trace.graphvizShowSteps (true); stdlib.Trace.run ();
    StringBuilder b = new StringBuilder();
    b.append("I am ");
    b.append("a dog");
    String s = b.toString();
    System.out.println(s);
    b.append("matic jerk");
    System.out.println(s);
  }
}