title: How to format output using printf and a dialog box?
body: <p>Using Java, how do I display the following "formatted code" in a dialog box?</p>
  
  <pre class="lang-java prettyprint-override"><code>System.out.printf("%20s%20s%20.-5f%n%n", "Assessed Value:", "$", assessedValue); 
  System.out.printf("%20s%20s%-5f%n%n", "Taxable Amount:", "$", taxedAmount);
  System.out.printf("%20s%20s%-5f%n%n", "Tax Rate for $100.00:", "$", taxDollars);
  System.out.printf("%20s%20s%-5f%n%n", "Property Tax:", "$", propertyTax);
  </code></pre>