LeetCode Solutions/June 2022 LeetCoding Challenge/Merge Sorted Array.java
<reponame>DevashishPathrabe/LeetCode<filename>LeetCode Solutions/June 2022 LeetCoding Challenge/Merge Sorted Array.javaclass Solution {
    public void merge(int[] nums1, int m, int[] nums2, int n) {
        for(int i=0; i<n; i++){
            nums1[m] = nums2[i];
            m += 1;
        }
        Arrays.sort(nums1);
    }
}