Description Of BigInteger: max(BigInteger val)
The java.math.BigInteger.max(BigInteger val) returns the maximum of this BigInteger and val.BigInteger.max(BigInteger val) method returns the BigInteger whose value is the greater of this and val . If they are equal, either may be returned.
Code Example Java BigInteger
import java.math.BigInteger; public class BigIntegerExam { public static void main(String[] args) { BigInteger bi1 = new BigInteger("2"); BigInteger bi2 = new BigInteger("3"); BigInteger bi3 = bi1.max(bi2); System.out.println(bi3); System.out.println(bi3.equals(bi2)); } }
ไม่มีความคิดเห็น :
แสดงความคิดเห็น