Code example for BigInteger

Methods: equals, multiply, subtract

0
			 
 
	} 
	 
	public static BigInteger factorial(BigInteger x){
		if(x.equals(BigInteger.ONE)){
			System.out.print(x);
			return x;
		} 
		else{ 
			System.out.print(x+"*");
			return x.multiply(factorial(x.subtract(BigInteger.ONE)));
		} 
	} 
		 
		 
 
}