title: The method format(String, Object[]) in the type String is not applicable for the arguments (...)
body: <p>Here is my code:</p>
  
  <pre><code>int hoursFormat = 1, minsFormat = 2, secsFormat = 3;
  String timeFormat = String.format("%02d:%02d:%02d",hoursFormat, minsFormat, secsFormat);
  </code></pre>
  
  <p>This gives a compilation error:</p>
  
  <pre class="lang-none prettyprint-override"><code>Unresolved compilation problem: 
      The method format(String, Object[]) in the type String is not applicable for the 
        arguments (String, int, int, int)
  </code></pre>
  
  <p>Why am I getting this error here and how can I fix it?</p>