Description Of BigInteger: xor(BigInteger val)
The java.math.BigInteger.xor(BigInteger val) returns a BigInteger whose value is (this ^ val) . (This method returns a negative BigInteger if and only if exactly one of this and val are negative)BigInteger.xor(BigInteger val) method returns this ^ val
Code Example Java BigInteger
import java.math.BigInteger; public class BigIntegerExam { public static void main(String[] args) { BigInteger bi1 = new BigInteger("8"); BigInteger bi2 = new BigInteger("2"); // perform xor on bi1, bi2 and assign result to bi3 BigInteger bi3 = bi1.xor(bi2); System.out.println(bi3); } }
ไม่มีความคิดเห็น :
แสดงความคิดเห็น