title: How to convert an array of bits to a single char in java?
body: <p>I am working with an array of 8 bits and I am trying to convert it to a single char in Java. I am trying to do something along the lines of </p>
  
  <pre><code>byte[] bytes2 = {0,0,0,0,0,0,0,0};
          char c = (char) bytes2);
  </code></pre>
  
  <p>It is throwing a compilation error that I can not case a byte[] to a char. I have gotten it to compile, but not work correctly by assigning char c to just one of the elements of the array. I am just stuck on this part, and would appreciate a little bit of help. <br>
  Thank you</p>