As shown below:
import java.util.Arrays;public class xulie { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String []str = {"abc","bca","cab","cba","aaa","111","232","112","ABC"}; Arrays.sort(str); for(int i=0;i<str.length;i++){ System.out.println(str[i]); } }}Print result: (number, uppercase, lowercase, installed ACS code value to sort)
111112232ABCaaaabcbcacabcba
The simple implementation of automatic sorting of string arrays above is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.