Writing an application, There is a method sort() in this class (its prototype is: void sort(String str[])), passing in multiple For strings, call the sort() method to sort the string array in lexicographic order from small to large.
#
The above is the detailed content of How to sort java strings. For more information, please follow other related articles on the PHP Chinese website!