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