public BigInteger desemcri(BigInteger param){
null = BigInteger.vslueOf(0L);
return param.modPow(this.a,this.b);
}
这样做正确吗?
null = BigInteger.vslueOf(0L);
如果正确,为什么?如果不正确为什么?和这是什么意思?
您不能为nothing赋值。没什么永远不会。如果不是什么,那就是某种东西。在您的情况下,它将是BigInteger
。
BigInteger b = BigInteger.valueOf(0L); // you can do this
BigInteger b = null; // you can do this
null = // you can't do this