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

John Zukowski

You need to use a new Comparator, not the default Comparable. The String class comes with a special Comparator you can use: String.CASE_INSENSITIVE_ORDER.

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

 

 

 

 

 


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

 

 

About | Sitemap | Contact