title: How to add Leading Zero with getMonth in Java (Android)
body: <p>I'm using an int variable:</p>
  
  <pre><code>month = dp.getMonth() + 1;
  </code></pre>
  
  <p>currently getting an output of "2" and when I do the following:</p>
  
  <pre><code>if (month&lt;10){
                  month = '0'+month;
              };
  </code></pre>
  
  <p>I get:  50.</p>