byte d=(byte) (b>>>4);
i mean when b is a byte type data then is it that for all shits operations we'll first have to convert it to int then perfrom the shift and then again cast to byte...
Always remember that binary operation on two different type primitives cannot be performed without both of them being promoted to the broadest numeric type amongst them. I mean if one is byte and other is int we have to convert the byte variable to int and then perform the operation.
I'm still in control here. LOOK at this tiny ad!
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earthhttps://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter