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
byte[] bytes2 = {0,0,0,0,0,0,0,0};
char c = (char) bytes2);
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.
Thank you