Here you can find the source of mod(BigInteger dividend, BigInteger divisor)
static BigInteger mod(BigInteger dividend, BigInteger divisor)
//package com.java2s; //License from project: Apache License import java.math.BigInteger; public class Main { static BigInteger mod(BigInteger dividend, BigInteger divisor) { return dividend.mod(divisor); }/*from w ww.ja v a 2s.co m*/ }