I have an Employee class. It has three paramaters like name(String), age(int),address(String) I have added 10 Employee objects into an ArrayList now i have a list of names but in it, name can be partial or complete. I need to check whether any name in the above list exist in the list of emplyee object either partially or complete match.
Basiclly, I need to check contains for the name string parameter of emplyee object in the ArrayList.
What will be the best approach for it.