Skip to Content
0
Former Member
Jan 17, 2011 at 06:14 AM

Set not working '-' as unique string

29 Views

Hi ,

I had to use Set interface in java to identify unique strings in one of the scenarios . While developing the same I observed a weird behavior of Set that it was not accepting '-' to be unique and storing the value more than one time .

Does anyone has a proper explanation for why this can happen ?

Kind Regards,

Smriti Garg