class Foo { void test() { StringBuilder sb = new StringBuilder(); sb.append("foo").append("bar"); sb.append("baz"); } }