title: Taking a new line using printf in java? Is %n correct?
body: <p>I'm new to Java, and I am at my wits in end.  I have got my program all to work, but just need help with the formatting when printing out.</p>
  <pre><code>if(count == 3)
      System.out.printf (&quot;%-15s %15s %15s %15s %15s %n&quot;, n, &quot; is compatible with 
                           &quot;,dates[k],dates[k+1],dates[k+2]);
  </code></pre>
  <p>My output is</p>
  <pre><code>Stacey Francis   is compatible with     Owen Farrell   Jack Clifford  Joshua Watkins 
  </code></pre>
  <p>I would like my output to be (without repeating stacey francis name or &quot;is compatible with&quot;:</p>
  <pre><code>Stacey Francis   is compatible with  Owen Farrell
                                   
                            Jack Clifford
                                   
                            Joshua Watkins
  </code></pre>
  <p>Just wondering how to go about this?</p>