Converting a byte to individual bits
I have been asked to implement a CRC from scratch. From what I have learnt the CRC basically works by performing a series of XOR operations on the ploynomial, bit by bit. I believe that in order to work the method I need to convert a byte into bits first.
The CRC is none of my concern, I know the algorithm. But I have no idea how to convert a byte into an array of individual bits. I know for a fact that every byte is in actuality a series of eight bits... For example 0010 0011. But seeing as the smallest JAVA data type is byte and it has no methods to convert it to a smaller type.. I am now stuck.
Can anyone help me? :(