True, but when you think about it &, |, &, and ~ (Does Java have bitwise-not?) is designed for numbers, not Booleans. A SIDE EFFECT of booleans being bytes makes it work on booleans like you would...
Type: Posts; User: lightOfDay
True, but when you think about it &, |, &, and ~ (Does Java have bitwise-not?) is designed for numbers, not Booleans. A SIDE EFFECT of booleans being bytes makes it work on booleans like you would...
& is not a logical operator, strictly. However it is good to know that it is a short-circuit work around, and not a 8-times the calculation minimum faceplant. :D
Just because you mentioned it, I thought I would point something out about bitwise operators. It doesn't do logic that normally makes any sense whatsoever. It does the low level calculations that...