如何把一个定义好的字符串数组用compareto方法排序,用java语音编写答:String[] arr = { "b", "a", "c", "d", "jg", "t", "afd", "fgf", "hjj", "rry", "mag", "po", "qfg" };Collections.sort(Arrays.asList(arr));//排序for (int i = 0; i < arr.length; i++) { System.out.print(arr[i] + " ");} ...