LargeInteger似乎没有与BigInteger'sand等效的功能。
从and(BigInteger val)“ Returns a BigInteger whose value is (this & val). (This method returns a negative BigInteger if and only if this and val are both negative.)”开始,我试图遵循这个很好的答案来复制testBit
static LargeInteger and(LargeInteger i, LargeInteger j) {
return i & j;
}
但编译器报告
error: bad operand types for binary operator '&'
return i & j;
^
怎样才能被复制BigInteger上来and使用LargeInteger?