```java
int[] a = new int[]{1,3,5,7,9,11,13,15,17,19};
int len = a.length;
System.out.println("---------初始-----------");
for (int i = 0; i < len; i++) {
System.out.print(a[i]+"-");
}
System.out.println("");
for (int i = 0; i < len/2; i++) {
int temp = a[i];
a[i] = a[len - i - 1];
a[len - i - 1] = temp;
}
System.out.println("---------倒叙后-----------");
for (int i = 0; i < len; i++) {
System.out.print(a[i]+"-");
}
```结果:
---------初始-----------
1-3-5-7-9-11-13-15-17-19-
---------倒叙后-----------
19-17-15-13-11-9-7-5-3-1-