public class Split5 {
public static void main(String[] args) {
Split5 sp = new Split5();
int[] b = sp.test();
}
public int[] test() {
int[] a = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int[] b = {};
for (int i = 0; i < 10; i++) {
a[i] = b[9 - i];
b = a;
// continue;
}
return b;
}
// 6.有一个数组,将数组里的数据逆序存储。
}
public static void main(String[] args) {
Split5 sp = new Split5();
int[] b = sp.test();
}
public int[] test() {
int[] a = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int[] b = {};
for (int i = 0; i < 10; i++) {
a[i] = b[9 - i];
b = a;
// continue;
}
return b;
}
// 6.有一个数组,将数组里的数据逆序存储。
}