摘要:
1 package test; 2 3 4 /*System类 5 * 6 * public static void gc() 运行垃圾回收器 只有在执行大量的对象的释放,才调用垃圾回收。 7 * public static void exit(int sta... 阅读全文
摘要:
1 package test; 2 import java.util.Random; 3 /* 4 * Random类 5 * 此类用于产生随机数 6 * 构造方法: 7 * public Random():没有种子,用的是默认种子,是当前时间的毫秒值 8 * ... 阅读全文
摘要:
1 package test; 2 3 /* 4 *Math:数学运算 5 * 成员变量 6 * PI E 7 * 8 * 成员方法 9 * public static int abs(int a) 绝对值10 * public static ... 阅读全文