title: Java string align to right
body: <p>I have an array of these numbers</p>
  
  <pre><code>61672
  8414449
  264957
  </code></pre>
  
  <p>I use a <code>DecimalFormat</code> object like this </p>
  
  <pre><code>DecimalFormat formatter = new DecimalFormat("###,### bytes");
  </code></pre>
  
  <p>to get these results</p>
  
  <pre><code>61,672 bytes
  8,414,449 bytes
  264,957 bytes
  </code></pre>
  
  <p>but I need the results to be aligned to right like the following</p>
  
  <pre><code>   61,672 bytes
  8,414,449 bytes
    264,957 bytes
  </code></pre>
  
  <p>Your help is already appreciated.</p>