Driver Code
public static void main ( String [ ] args ) { int arr1 [ ] = new int [ ] { 1 , 5 , 9 , 10 , 15 , 20 } ; int arr2 [ ] = new int [ ] { 2 , 3 , 8 , 13 } ; merge ( arr1 . length , arr2 . length ) ; System . out . print ( "After Merging  First Array : "); System . out . println ( Arrays . toString ( arr1 ) ) ; System . out . print ( " Second ▁ Array : ▁ " ) ; System . out . println ( Arrays . toString ( arr2 ) ) ; } }