title: How can I fix a byte array where the values are off by 4 bits?
body: <p>I have a piece of software which takes values from a byte buffer, and then puts them into several byte arrays using the <code>Array.copyOfRange()</code> method. My issue is that my values are off by 4 bits. for example. </p>
  
  <p>I am expecting an array that looks like this (values displayed in hexadecimal, and "==" is just used to say my array is equal to this, I know this is not proper code. Its just for the question.)</p>
  
  <pre><code>byte[] expectedArray == {AB, CD, EF, 01, 23, 45};
  </code></pre>
  
  <p>Instead, my array looks like this:</p>
  
  <pre><code>acctualArray == {9A, BC, DE, F0, 12, 34};
  </code></pre>
  
  <p>As you can see, it is off by one Hex character (or 4 bits). Is there any way to shift the characters to the left by one to remedy my issue, or is there anything that I am overlooking that may be causing this?</p>