Well, I have a question on how to use Shift Left in java. I have a String representing a value in hexadecimal. Except I need to pass this value to binary. For this I use an integer variable to turn this String into a decimal number:
int primeiroOperando = Integer.parseInt(addR2, 16);
And to turn into binary, I use toBinaryString:
String addR1 = Integer.toBinaryString(primeiroOperando);
But as I need to do the Shift, because I have to get the least significant bits, I can not use this String since it has to use a whole number for this. How can I do this binary conversion to save to an integer variable so I can do the Shift?