From 4588f761088c98d4eebc0acaa5d315fa0bdbd71e Mon Sep 17 00:00:00 2001 From: NidhiMalpani <88290216+NidhiMalpani@users.noreply.github.com> Date: Sun, 10 Oct 2021 11:21:52 +0530 Subject: [PATCH] Java code for Merging sorted arrays (#516) * Remove Duplicates From Sorted Array Created PR for Issue #471 * Java Code for merging sorted arrays Created PR for issue #449 --- .../Java/MergeSortedArray/MergeSortedArray.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Programming/Java/MergeSortedArray/MergeSortedArray.java diff --git a/Programming/Java/MergeSortedArray/MergeSortedArray.java b/Programming/Java/MergeSortedArray/MergeSortedArray.java new file mode 100644 index 0000000..a319e1e --- /dev/null +++ b/Programming/Java/MergeSortedArray/MergeSortedArray.java @@ -0,0 +1,10 @@ +class MergeSortedArray { + public void merge(int[] nums1, int m, int[] nums2, int n) { + int i=m; + for(int j=0;j