Hi everybody!
Please help me out with this code:
//this is th code
class HexByte{
static public void main( String args[]){
char hex[] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
byte b = (byte)oxf1;
System.out.println("b = ox" + hex[(b >> 4) & oxof] + hex[b & oxof]);
}
}
//code ends here
Please tell me why are we using theand operator here and would you also explain me about the code inside System.out.println() line.
Rachel