title: using printf for multiple formats
body: <p>I have a question on how to use printf for multiple formats. I want something like this, where everything inside printf is spaced out evenly:</p>
  
  <pre><code>i     i     i     i     i
  </code></pre>
  
  <p>and this is how I used printf:</p>
  
  <pre><code>// display headers
      System.out.printf("", "%15s", "%15s", "%15s", "%15s", "Car Type", 
              "Starting Miles", "Ending Miles", "Distance/Gallon", 
              "Gallons/Distance", "Miles/Gallon");
  </code></pre>
  
  <p>when I executed my program, the above wouldn't show up at all, I just go this:</p>
  
  <pre><code>run:
  Gas &amp; Mileage Calculations
  
  |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  BUILD SUCCESSFUL (total time: 0 seconds)
  </code></pre>