Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
can java read bits?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Joona I Palaste, post: 574966"] No it's not. No it's not. If the "64-bit" is already set, this will clear it, and instead set the "128-bit". If the "8-bit" is already set, this will clear it, and instead set the "16-bit". If it is already set, this will clear it, and instead set the "32-bit", and so on. Why not simply use bitwise operators to do the actual setting? To set a bit, OR (operator |) the number with a number with that bit set and the others clear. To clear a bit, AND (operator &) the number with a number with that bit clear and the others set. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
can java read bits?
Top