title: Java output formatting for Strings
body: <p>I was wondering if someone can show me how to use the format method for Java Strings.
  For instance If I want the width of all my output to be the same</p>
  
  <p>For instance, Suppose I always want my output to be the same</p>
  
  <pre class="lang-none prettyprint-override"><code>Name =              Bob
  Age =               27
  Occupation =        Student
  Status =            Single
  </code></pre>
  
  <p>In this example, all the output are neatly formatted under each other; How would I accomplish this with the format method.</p>