public class Employee{
private int employeeId;
public int getEmployeeId(){
return employeeId;
}
public boolean equals(Object obj){
if (obj == null || !obj instanceof Employee) return false;
Employee e = (Employee)obj;
return employeeId == e.getEmployeeId();
}
}