title: Tabular Format / printf Spacing in Java Assistance
body: <p>So this snippet of code has been bugging me for the past hour or so. Basically, part of my program's task is to display data in a sort of tabular format. Only thing left is to just make the output look nice, so to speak.</p>
  
  <p>Here is the (example) segment of code that's been bugging me in terms of formatting/syntax of the printf command:</p>
  
  <pre><code>System.out.printf("%-20s %-20s %-20s %-20s %-20s%n",
                  "Part #:", "Description:", "Number Sold:", "Price:", "Total:");
  System.out.println
          ("---------------------------------------------------------------------------------------------------------------");
  System.out.printf("%-20s %-20s %-20d %s%-20.2f %s%-20.2f%n",
                  "2304E", "Power Drill", 20, "$",99.99, "$",100*99.99);
  </code></pre>
  
  <p>Thing is, once I try to run the command on NetBeans, I seem to be getting this on my output:</p>
  
  <p><a href="https://i.stack.imgur.com/4Wa1Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4Wa1Y.png" alt="enter image description here"></a></p>
  
  <p>While this isn't exactly program-breaking or a big deal, that small little indent on the number right bellow the <code>Total:</code> header is bugging me. </p>
  
  <hr>
  
  <p>I've been trying for the past hour or so to get the "$9999.00" double/float value perfectly aligned bellow the "Total:" header. Any assistance would be appreciated.</p>
  
  <p>tl;dr - Look at Image Link, then look at code. Trying to get the number right bellow "Total" pushed to the left. Help?</p>