posted 12 years ago
the output of the above program is:
contents of HashSet are:[1,3,4,5,97,7,56,72]
can any one please explain this output to me.......
i knows that if i will use TreeSet instead of HashSet then the output will be in sorted order becoz TreeSet is Sorted collection
but in case of HashSet how this output comes after successive execution.....