Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Beanshell 中是否有用于逻辑否定¬(非)或工作的二元运算符?例如
¬
3∧¬5 = 2
确定两个值独有的位(不在两个值中)。然后屏蔽第一个值以保留在第二个值中独占的位,从而显示不在第一个值中的位。
a = 3; b = 5; print((a ^ b) & a); // ==>2