title: Why does String.format accept ints in place of %s?
body: <p>Looking at a couple of references for Java String.format(), I see they mention it has the following format: </p>
  
  <pre><code>public static String format(String format, Object... args)
  </code></pre>
  
  <p>So it allows me to write the following:</p>
  
  <pre><code>String newStr = String.format("%s,%s,%s", 1, 2, 3);
  </code></pre>
  
  <p>But I cannot do this:</p>
  
  <pre><code>String newStr = String.format("%d,%d,%d", "1", "2", "3");
  </code></pre>
  
  <p>Why can i use ints in place of %s but not vice-versa? Is it doing type-conversion from int to string itself?</p>