title: Translating a String containing a binary value to Hex
body: <p>I am trying to translate a String that contains a binary value (e.g. 000010001010011) to it's Hex value.(453)</p>
  
  <p>I've been trying several options, but mostly I get a converted value of each individual character. (0=30 1=31)</p>
  
  <p>I have a function that translates my input to binary code through a non-mathematical way, but through a series of "if, else if" statements. (the values are not calculated, because they are not standard.) The binary code is contained in a variable String "binOutput"</p>
  
  <p>I currently have something like this:</p>
  
  <pre><code>        String bin = Integer.toHexString(Integer.parseInt(binOutput));
  </code></pre>
  
  <p>But this does not work at all.</p>