I need help to write a logic to check if a object attribute, given from a list of objects, is duplicated or not in that list. Here\'s my code:
public List<