Thanks for your time guys. I was not entirely correct on tweaking equals and hash code part and i know List can be used instead of set. But my intention is to know how to make a "set" to accept...
Type: Posts; User: JavaKiddo
Thanks for your time guys. I was not entirely correct on tweaking equals and hash code part and i know List can be used instead of set. But my intention is to know how to make a "set" to accept...
Hi Guys... I was asked in one of the interviews "How to make set to allow duplicate elements? " All i knew was we need to tweak the equals and hash code in some to make it happen but not sure how...