title: print spaces with String.format()
body: <p>how I can rewrite this:</p>
  
  <pre><code>for (int i = 0; i &lt; numberOfSpaces; i++) {
      System.out.print(" ");
  }
  </code></pre>
  
  <p>using <code>String.format()</code>?</p>
  
  <p><em>PS</em></p>
  
  <p>I'm pretty sure that this is possible but the <a href="http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax" rel="noreferrer">javadoc is a bit confusing</a>.</p>