赞
踩
package zlm;
import java.util.Arrays;
public class MergeList {
public static void main(String args[]) {
int a[] = { 1, 2, 6 };
int b[] = { 7, 3, 3 };
int c[] = new int[a.length + b.length];
System.arraycopy(a, 0, c, 0, a.length);
System.arraycopy(b, 0, c, a.length, b.length);
Arrays.sort(c);
System.out.println(Arrays.toString(c));
}
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。