LintCode[简单]合并两个有序升序的整数数组A和B变成一个新的数组。新数组也要有序 方式一: public int[] mergeSortedArray(int[] A, int[] B) { // write your code here int[] c=new int[A.length+B.length]; for(int i=0;i<A.length;i++){ c[i]=A[i]; } for(int j=0;j<B.length;j++){ c[A.length+j]=B[j]; } Arrays.sort(c); return c; }