Description Of BigInteger: or(BigInteger val)
The java.math.BigInteger.or(BigInteger val) returns a BigInteger whose value is (this | val) . (This method returns a negative BigInteger if and only if either this or val is negative)BigInteger.or(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("3"); BigInteger bi2 = new BigInteger("4"); System.out.println(bi1.or(bi2)); // output 7 System.out.println(bi2.or(bi1)); // output 7 } }
ไม่มีความคิดเห็น :
แสดงความคิดเห็น