Here you can find the source of equal(BigInteger int1, BigInteger int2)
public static boolean equal(BigInteger int1, BigInteger int2)
//package com.java2s; //License from project: Open Source License import java.math.BigInteger; public class Main { public static boolean equal(BigInteger int1, BigInteger int2) { if (int1.compareTo(int2) == 0) { return true; }//from w w w .java 2s .c o m return false; } }