HashSet<Employee> hs= new HashSet<Employee>();
Employee e1 = new Employee("Tatha",20,6000);
Employee e2 = new Employee("Amar",30,9000);
Employee e3 = new Employee("Aziz",25,15000);
Employee e4 = new Employee("Tatha",20,6000);
hs.add(e1);
hs.add(e2);
hs.add(e3);
hs.add(e4);
如何按EmpID排序?在hashCode()方法
中