public static void hel(int[] a,int[] b,int[] c){
System.arraycopy(a, 0, c, 0, a.length);
System.arraycopy(b, 0, c, a.length, b.length);
}
public void testabc(){
int[] str = new int[4];
int[] a = new int[]{1,2};
int[] b = new int[]{3,4};
hel(a,b, str);
for(int i=0;i<str.length;i++){
System.out.println(str[i]);
}
}
posted on 2013-12-25 11:39
Terry Zou 阅读(142)
评论(0) 编辑 收藏 所属分类:
Android