Can I use sorting algo other then natural sorting?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Shailesh_Mangal
Posted On:   Tuesday, March 27, 2001 10:47 AM

Can I use Insertion Sort with treemap collection? Also suggest which collection is most suitable ( and why ) for frequent insertion and searching when the collection is having more then 10,000 entries at a time.

Re: Can I use sorting algo other then natural sorting?

Posted By:   John_Zukowski  
Posted On:   Thursday, March 29, 2001 10:14 PM

You can pass a Comparator to the TreeMap constructor to use a sorting order other than the natural order.


HashMap / HashSet seems like your best bet.

About | Sitemap | Contact