Java BigInteger Value Check isOdd(BigInteger x)

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

Description

is Odd

License

Open Source License

Declaration

private static boolean isOdd(BigInteger x) 

Method Source Code

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

import java.math.BigInteger;

public class Main {
    private static boolean isOdd(BigInteger x) {
        return x.testBit(0);
    }/*  w w  w  .j a v a 2 s  . com*/
}

Related

  1. isLong(BigInteger number)
  2. isMersenneNumber(BigInteger n)
  3. isNegative(BigInteger i)
  4. isNumberInRange(String text, BigInteger min, BigInteger max)
  5. isOdd(BigInteger in)
  6. isPerfectCubic(BigInteger n)
  7. isPositive(final BigInteger value)
  8. isPowerOfTwo(BigInteger bintValue)
  9. isPowerOfTwo(BigInteger x)