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 に論理否定¬(not) またはその回避策のための二項演算子はありますか? 例えば
¬
3∧¬5 = 2
2 つの値に排他的なビットを決定します (両方でオンではありません)。次に、最初の値をマスクして、2 番目の値に排他的なビットを残し、最初の値にないビットを表示します。
a = 3; b = 5; print((a ^ b) & a); // ==>2