public boolean isDuplicateElement(Object item){
  return duplicates.contains(item);
}

public boolean isDuplicateElement ( Object item ) { return duplicates . contains ( item ) ; }
indicates whether given item is a duplicate .
