摘要:
1.纯随机数发生器 线性同余算法实现: MyRandom类 public class MyRandom { private static final long multiplier=0x5DEECE66DL; private static final long modulus = 1L << 48; 阅读全文
摘要:
修改后的代码如下 主方法 import java.util.Scanner; public class Main { public static void main(String[] args) { WarehouseManagement sys=new WarehouseManagement(); 阅读全文
摘要:
1.变量的作用域 实验代码: public class homework { public static int a=10; public static void main(String[] args) { int a=0; System.out.println("a = "+a); } } 实验结 阅读全文