BigInteger不支持使用比较
==和使用
*。相反,您必须调用类的适当方法
BigInteger(
equals()和
multipy())。
另请注意,存在
BigInteger.ZERO和
BigInteger.ONE。
最后, 返回类型 你的
fact方法应该是
BigInteger,不
int。是否要指定 参数
的类型
BigInteger或
int由您自己决定。

BigInteger不支持使用比较
==和使用
*。相反,您必须调用类的适当方法
BigInteger(
equals()和
multipy())。
另请注意,存在
BigInteger.ZERO和
BigInteger.ONE。
最后, 返回类型 你的
fact方法应该是
BigInteger,不
int。是否要指定 参数
BigInteger或
int由您自己决定。