title: Which API can I use to format an int to 2 digits?
body: <p>What API can I use to format an <code>int</code> to be 2 digits long?</p>
  
  <p>For example, in this loop</p>
  
  <pre><code>for (int i = 0; i &lt; 100; i++) {
     System.out.println("i is " + i);
  }
  </code></pre>
  
  <p>What can I use to make sure <code>i</code> is printed out like <code>01</code>, <code>02</code>, <code>10</code>, <code>55</code> etc (assuming a range of 01-99 )</p>