title: Java String Formatting (Columns)
body: <p>Is there a native code or library in Java for formatting a String like in the way below made in C#?</p>
  
  <p>Source: <a href="https://stackoverflow.com/questions/2978311/format-a-string-into-columns#_=_">Format a string into columns</a>  (C#)</p>
  
  <pre><code>public string DropDownDisplay { 
    get { 
      return String.Format("{0,-10} - {1,-10}, {2, 10} - {3,5}"), 
                            Name, City, State, ID);
    } 
  } 
  </code></pre>