对于您提到的特定问题:调用时
bits2.set(1000001),请将百万分之一和第一位设置为true。然后,当与相交时
bits1,它们分别设置了100万,11.1万和111st位,它们没有共同的位。
我想你的 意思 是
bits2.set(0); // set the 0th bit bits2.set(6); // set the 6th bit
这有助于清除一切吗?

对于您提到的特定问题:调用时
bits2.set(1000001),请将百万分之一和第一位设置为true。然后,当与相交时
bits1,它们分别设置了100万,11.1万和111st位,它们没有共同的位。
我想你的 意思 是
bits2.set(0); // set the 0th bit bits2.set(6); // set the 6th bit
这有助于清除一切吗?