package he;
public class shu {
public static void main(String[] args) {
int[] a = new int[]{1,3,5,2,4,6};
System.out.println("颠倒后数组");
for (int i = 0; i < a.length; i++) {
System.out.println(a[i]+",");
}
System.out.println();
System.out.println("输出");
for (int i = a.length -1; i >=0 ; i--) {
System.out.println(a[i] + " ");
}
}
}
【无标题】
最新推荐文章于 2024-11-11 20:35:54 发布