/** * 反转排序 * 对数组两边的元素进行替换,只需要循环数组长度的半数次。 * @author Administrator * */ public class ReverseSort { public static void main(String[] args) { int[] t = { 12, 20, 5, 16, 15, 1, 30, 45, 23, 9 }; for (int i : t) { System.out.print(i+" "); } System.out.println("\n反转排序( 数组逆序)"); int[] a=R...