hex string with zeros left padded
<p>To left pad a number with zeros if there are fewer than two digits we use this: </p>

<pre><code>String.format("%02d", aBlkNo);
</code></pre>

<p>However, <code>aBlkNo</code> should be a hex string not a decimal. What can I do to render a two digit hex string from a <code>byte</code> with zeros padded when necessary?</p>