Skip to content

Instantly share code, notes, and snippets.

@zhaochunqi
Last active December 22, 2015 04:09
Show Gist options
  • Save zhaochunqi/6415643 to your computer and use it in GitHub Desktop.
Save zhaochunqi/6415643 to your computer and use it in GitHub Desktop.
数组:合并两个Int数组
private static int[] ArrayCombine (int[] a,int[] b) {
int[] al = new int[a.length+b.length];
al = Arrays.copyOf(a, a.length+b.length);
for(int i = 0;i < b.length; i++) {
al[a.length+i] = b[i];
}
return al;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment