摘要:
在静态方法中,先生成一个对象,用对象.成员访问实例成员 static class Employee { String name; long salary; short employee_id; static int total_employees; static void clear(){ Empl 阅读全文
摘要:
class MyTestClass { public int Value; public boolean equals(MyTestClass obj){ return obj.Value ==this.Value; } public MyTestClass(int initValue){ Valu 阅读全文
摘要:
import java.util.Scanner; public class Zuheshu { //计算m阶乘 public static int Fun(int m){ int sum=0; if( m < 0 ) System.out.println("input error,please i 阅读全文
摘要:
import java.util.Random;import java.util.Scanner; public class TestSeed{ public static void main(String[] args) { Random r = new Random(System.current 阅读全文