How do I do a case-sensitive sort in a language-insensitive manner?

John Zukowski

If you have an array of primitives or an array of equivalent objects that implement the Comparable interface, all you need to do is call the sort() method of the java.util.Arrays class. If the class doesn't implement Comparable, you need to provide your own Comparator implementation to the sort() method.

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

 

 

 

 

 


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

 

 

About | Sitemap | Contact