In a TreeMap, can I use a sorting algorithm other than the natural sorting for the keys?

John Zukowski

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

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact