title: Java StringBuilder with printf. Equivalent String.format
body: <p>I am using StringBuilder to build a ver long query.</p>
  
  <pre><code>StringBuilder sb = new StringBuilder();
  sb.append("select * from x where name = %s'");
  String.format(sb.toString, "John"); 
  </code></pre>
  
  <p>What would be equivalent to something like this? Or is this actually the right way to do it?</p>