package com.qll.cn;
import java.util.Arrays;
public class OperateArray {
public static void main(String[] args) {
int[] a = new int[] { 1, 2, 3, 4, 5 };
int[] b = new int[] { 9, 8, 7, 6, 5, 4, 3 };
System.arraycopy(a, 0, b, 2, 3);
for (int i = 0; i < a.length; i++) {
System.out.print(a[i] + "/t");
}
System.out.println();
for (int j = 0; j < b.length; j++) {
System.out.print(b[j] + "/t");
}
System.out.println();
Arrays.sort(b);
for (int i = b.length - 1; i >= b.length - 7; i--) {
System.out.print(b[i] + "/t");
}
}
}