title: How to convert string to hex bytes in Java
body: <p>I want to split each of two chars in string and convert it to hex byte array representation,
  i am just lost how to do this.</p>
  
  <p>in string a= hex a which is 10 in decimal
  in string b= hex b which is 11 in decimal</p>
  
  <pre><code>String toConvert = "abbbbbbbbbbbbbbbbbbbbbbc";
  byte[] output = new byte[12];
  
  
  
  
  
                            Input
   ab    bb   bb    bb  bb   bb   bb   bb   bb   bb   bb   bc
                            output
  [-85, -69, -69, -69, -69, -69, -69, -69, -69, -69, -69, -68]
  </code></pre>