Code example for BigInteger

Methods: modPow

0
			caseNum++;
			break; 
		} 
	} 
	public static String modPow(int a, long b, long mod){
		BigInteger x = new BigInteger(a+"");
		BigInteger y = new BigInteger(b+"");
		BigInteger z = new BigInteger(mod+"");
		return x.modPow(y, z).toString();
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE