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