将 BigInteger 转换为二进制字符串
2022-09-01 18:41:09
我们可以将Biginteger转换为二进制字符串吗?
String s1 = "0011111111101111111111111100101101111100110000001011111000010100";
String s2 = "0011111111100000110011001100110011001100110011001100110011001100";
BigInteger bi1, bi2, bi3;
bi1 = new BigInteger(s1,2);
bi2 = new BigInteger(s2,2);
bi3 = bi1.xor(bi2);
如何将 bi3 转换为二进制字符串