//给你两个有序整数数组nums1和nums2,合并两个数组,使nums3成为一个有序数组
public class Solution1 {
public static void main(String[]args){
int[]nums1 = new int[]{1,2,3};
int[]nums2 = new int[]{4,5,6};
int[]nums3 = new int[nums1.length+nums2.length];
System.arraycopy(nums1,0,nums3,0,nums1.length);
System.arraycopy(nums2,0,nums3,nums1.length,nums2.length);
for (int i=0;i<nums1.length+nums2.length;i++){
System.out.print(nums3[i]+",");
}
}
}