package com.learn01;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Test08 {
/**
* 字母大小写排序
* @param args
*/
public static void main(String[] args) {
String[] s= {"duk","Test","hupu","Best","Mub"};
List<String> arlist=new ArrayList<String>();
Arrays.sort(s,String.CASE_INSENSITIVE_ORDER);
for (int i = 0; i < s.length; i++) {
arlist.add(s[i]);
}
System.out.println(arlist.toString());
}
}
排序结果如下: