dcsimg
how we sort elements in sets
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anand_Pasunoori
Posted On:   Thursday, June 14, 2007 10:22 AM

how we sort elements in sets

Re: how we sort elements in sets

Posted By:   WarnerJan_Veldhuis  
Posted On:   Friday, June 15, 2007 04:17 AM

Hey you wank, you have asked this questions three times now, and pretty much gotten the same answer every time.



[rant mode on]
IF YOU DON'T LIKE THE ANSWER, JUST SAY SO!! IF YOU DON'T UNDERSTAND IT, JUST SAY SO!! STOP WASTING EVERYBODIES TIME BY REPEATING THE SAME QUESTION OVER AND OVER AGAIN!!!!
[/rant]





Now read the fucking TreeSet API and leave us alone.

Re: how we sort elements in sets

Posted By:   Tim_Frith  
Posted On:   Thursday, June 14, 2007 06:43 PM

Have a look at java.util.TreeSet. It will sort items as you add them.


If you don't like the "natural" ordering it does, you can construct it with

new TreeSet(Comparator).
About | Sitemap | Contact