title: Most efficient way to append a constant string to a variable string in Java?
body: <p>Currently in my code I have something in a for loop similar to:</p>
  
  <pre><code>bstr = bstr + x.charAt(i) + x.charAt(i&gt;&gt;4) + x.charAt(i&gt;&gt;8);
  </code></pre>
  
  <p>Where i is an integer and the loop variable and x is a static final constant string of characters. bstr could be in the order of KBs.</p>
  
  <p>Thanks</p>