摘要:
package ming;import java.util.Hashtable;class D { int count; public D(int count) { this.count = count; } public boolean equals(Object obj) { if (obj... 阅读全文
摘要:
package ming;import java.util.Comparator;import java.util.TreeSet;class M { int age; public M(int age) { this.age = age; } @Override public String to... 阅读全文
摘要:
package ming;enum Operation { PLUS { public double eval(double x, double y) { return x + y; } }, MINS { public double eval(double x, double y) { ... 阅读全文
摘要:
package ming;interface GenderDoc { void info();}enum Gender implements GenderDoc { // public static final Gender MALE = new Gender("男"); MALE("男") { ... 阅读全文
摘要:
package ming;enum Gender{ MALE("男"),FEMALE("女"); //public static final Gender MALE = new Gender("男"); private String name; public String getName() { ... 阅读全文
摘要:
package ming;interface Teachable { void work();}class Programer { private String name; public String getName() { return name; } public void setName(S... 阅读全文