java中怎么 对数组里的 元素 按出现的顺序排序答:其实这个用java.utils.Arrays这个对象里的sort(T[],Comparator)的这个方法就可以了。String[] words = new String[] { "apple", "dog", "apple", "dog", "apple", "cat", "cat", "dog", "lamb" }; Arrays.sort(words, String.CASE_INSENSITIVE_ORDER);这样words就已经被排序了。Plus:...