title: Convert Hex String to unsigned Byte Array in Java
body: <p>I get hex strings of 14 bytes, e.g. <code>a55a0b05000000000022366420ec</code>.
  I use <code>javax.xml.bind.DatatypeConverter.parseHexBinary(String s)</code> to get an array of 14 bytes.
  Unfortunately those are unsigend bytes like the last one <code>0xEC</code> = 236 for example.</p>
  
  <p>But I would like to compare them to bytes like this:
  <code>if(byteArray[13] == 0xec)</code>
  Since 235 is bigger than a signed byte this if statement would fail.
  Any idea how to solve this in java?
  Thx!</p>