我们如何实现Employee
通过员工 ID 比较 s 的比较方法?
public int compare(Employee emp1, Employee emp2) {
throw new UnsupportedOperationException("Not supported yet.");
if(emp1.getEmpid()<emp2.getEmpid())
{
return -1;
}
else if(emp1.getEmpid()>emp2.getEmpid())
return 1;
else
return 0;
}