If I have an LinkedList of Employee objects...
Each employee has a Name, and an ID fields.
I have linkedList call list....
If I want to see if the list contains an employee I do:
list.contains(someEmployeeObject)
How about if I want to see if the the list contains an employee based on the imployee ID..
let's say I have the following method:
public boolean containsEmployeeByID(int id)
How can I know if the list contains the employee object with the parameter id?