title: How to use System.out.printf
body: <p>I tried to use <code>printf</code> but I have unexpected errors.</p>
  
  <p>What is the fault on this code:</p>
  
  <pre><code>System.out.printf("The date is %d/%d/%d", month,day,year);
  </code></pre>
  
  <p>I want to print the date and <code>month</code>, <code>day</code> and <code>year</code> are double variables.</p>