Java Program with binary operations
Hey there guys.
Let's say I have: int temp=0xcf4f3c09. And I do a temp>>24;
I then have 0x000000cf, but in java, instead of being 207, it's
-49, the two's complement of 207. How do I change it to 207?
Just and the result with 255 i.e.
temp = temp & 255 and it should make it 207
Hope this helps
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, and if they get mad, you are a mile away and you have their shoes ;-)
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center