下面的代码段对该算术运算给出了1.0E27%10的错误
"ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [util.c:840]
代码是
int []A = {1000000000, 1000000000, 1000000000};
int cnt=0;
double product = 1;
for(int i= A.length-1 ; cnt < 3; i--,cnt++ ) {
product*=A[i];
}
System.out.println(product%10); //// 1.0E27%10
while(product%10 == 0) {
product = product/10;
zeroCnt++;
}