Here you can find the source of isOdd(BigInteger x)
private static boolean isOdd(BigInteger x)
//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*/ }