I wanted to print sorted Polish names of all available languages.
import java.util.*; public class Tmp { public static void main(String... args) { L
try
Collections.sort(langs, Collator.getInstance(new Locale("pl", "PL")));
it will produce
... litewski łotewski ...
see Collator API for details