} while (arr[digit - 1] != -1); System.out.println("你输入的数组为:"); for (j = 0; j System.out.print(arr[j] + " "); } System.out.println("\n数组逆序输出为:"); for (j = digit - 1; j >= 0; j--) { System.out.print(arr[j] + " "); } } 1. 2. 3. 4....
java数组的逆序输出 java将数组逆序排序输出 package cn.zhang; public class Subject001 { /* * 将一个数组逆序输出。 * */ public static void main(String[] args) { int[] nums = new int[] { 12, 56, 24, 78, 33, 92 }; System.out.println("逆序输出前:"); for (int i = 0; i < ...