Format decimal that represents hour into HH:mm
<p>I'm trying formatting a Double that represents hour like this:</p>

<pre><code>Double totalHours = 1.05;

int hour = totalHours.intValue();
Long minutes = Math.round((totalHours - hour) * 60);

System.out.println(hour + ":" + minutes);
</code></pre>

<p>In this case I get <code>"1:3"</code> but I wold like <code>"01:03"</code>. How would I do this?</p>

<p>Or there's a better way to do this?</p>
