Here you can find the source of isZero(BigInteger value)
public static boolean isZero(BigInteger value)
//package com.java2s; import java.math.BigInteger; public class Main { public static boolean isZero(int value) { return value == 0; }// w w w. j a va 2 s . c o m public static boolean isZero(BigInteger value) { return value.compareTo(BigInteger.ZERO) == 0; } public static boolean isZero(double value) { return value == 0; } }