Java BigInteger Value Check isEven(BigInteger x)

Here you can find the source of isEven(BigInteger x)

Description

is Even

License

Open Source License

Declaration

private static boolean isEven(BigInteger x) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.math.BigInteger;

public class Main {
    private static boolean isEven(BigInteger x) {
        return !isOdd(x);
    }//from w  w  w  .j  a  v  a 2 s  .c om

    private static boolean isOdd(BigInteger x) {
        return x.testBit(0);
    }
}

Related

  1. isBigger(final BigInteger big1, final BigInteger big2)
  2. isCovers(BigInteger covers, BigInteger value)
  3. isDefined(BigInteger no)
  4. isElementOfZn(BigInteger element, BigInteger n)
  5. isFermatNumber(BigInteger f)
  6. isGoodGaAndGb(BigInteger g_a, BigInteger p)
  7. isIn20PercentRange(BigInteger first, BigInteger second)
  8. isInRange(BigInteger in, int range, double eps)