title: Get half bytes from a byte
body: <p>I have a SHA-512 generated byte array from some bytes.
  <code>
  484c1514b468429967aa0c8e2ab6d99c14e7cd4a45605cb834ebfd3612a0cc9184510d8d0a9c92e636d82c065fa2db0e05ef5c2518153a6c4ca9eebbe8d7b475
  </code></p>
  
  <p>When I iterate like below;</p>
  
  <pre><code>for(byte x = 0; x &lt; s512in.length; x++){
      System.out.println(String.format("%02X ", s512in[x]) + " );
  }
  </code></pre>
  
  <p>I can get 48,4C,15.... but I want to get 4,8,4,C... from the byte array. How can I get that without converting to Strings?</p>