Hello, I have the following variable:

I would like to shift the order of the digits so that I get 0xa222.Code:short opCode = 0x22a2;

I would also like to separate each individual hex digit and I thought that some bit operations could do both of these operations but I don't know how exactly.

Any help would be appreciated