Last active
December 22, 2015 04:09
-
-
Save zhaochunqi/6415643 to your computer and use it in GitHub Desktop.
数组:合并两个Int数组
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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