title: Can we read 4th byte from hexadecimal value?
body: <p>Actually I am not so clear about it so I put a question here, and I am also new to bit calculation. My scenario is like this, I get some hexadecimal value from <code>CAN</code> (A hardware device) , for one perticular value I have to read 4th byte , in this 4th byte the value of bit 5 and 6 decides the output to be written, I mean if 5 &amp; 6 th bit is 00= off , 01= on like this. So my question is , how can we read 4th or any particular byte and in byte particular bits from a hexadecimal. If possible please  give me some guidance or examples  or any tutorial sites. I googled a lot but no use . Please help me in this. and I want this to be done in java.</p>