title: How to write integer with two digits?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/12421444/how-to-format-a-number-0-9-to-display-with-2-digits-its-not-a-date">How to format a number 0..9 to display with 2 digits (it’s NOT a date)</a>  </p>
  </blockquote>
  
  
  
  <p>How can I write an integer number with two digits in Java? For example if the integer is less than 10, the program should return <code>01</code> to <code>09</code>. I need that <code>0</code> in front of the one digit number. Something like <code>%.2f</code>  for double type.</p>