title: Convert a hex string to a byte in Java
body: <p>In Java, how can a hexadecimal string representation of a byte (e.g. "1e") be converted into a byte value? </p>
  
  <p>For example:</p>
  
  <pre><code>byte b = ConvertHexStringToByte("1e");
  </code></pre>