package day08; //字符串import java.util.Arrays按字典顺序排序import java.util.Collections;
公共类demo7{
publicstaticvoidmain (stringajdcjlargs ) {
String demosajdcjl={'hello ',' chenhj ',' test ','中国' }; //方法一Arrays.sort(demos );
for(intI=0; I
字符串守护进程(for ) {
}
collections.sort(Arrays.aslist ) demos ); for(intI=0; I
}
}