I'm trying to do a bit manipulation in java, but I'm having a problem.
I'm storing any number in an int and trying to get the least significant bit of it, but I do not know how to do that.
For example:
int valor = 98;
The value in binary 98 is 1100010 and I'm trying to get and save in another int only 0 (110001'0 '), and do this with any number independent of size.
Could you help me?