char c='a';byte bytevalue=(byte)c;char charvalue=(char)bytevalue;byte mask1=1; //0000 0001byte mask2=2; //0000 0010byte firstdigit= mask1&bytevalue;byte seconddigit= mask2&bytevalue;so what was the problem?