好困惑啊,帮帮忙?
我在试着编程,很简单的取随机数,可就这样也不对,我不知道哪里错了,编译时没问题,而且在Eclipse环境下运行JSimpleBug的例程也没出错,可为什么我这个简单的试验程序却出错了呢?帮帮忙吧。在Eclipse环境下。import swarm.Globals;
public class test {
/**
* @param args
*/
public static void main(String[] args) {
int y=(int)(10*Math.random());
System.out.println("result is "+y);
double z=Globals.env.uniformDblRand.getDoubleWithMin$withMax(0.0, 1.0);
System.out.print(z+" re");
}
}
结果是:
result is 2
#
# An unexpected error has been detected by Java Runtime Environment:
#
#EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x100b8305, pid=1064, tid=1068
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_01-b06 mixed mode, sharing)
# Problematic frame:
# C
#
# An error report file with more information is saved as hs_err_pid1064.log 怎么没有人帮我啊?我很急啊?版主帮帮吧 看来这地方好久都没有人来了?
页:
[1]