Write a java programme to merge two arrays (using buffered class )
Answers
Answered by
1
Java Program to Merge Two Arrays
Merge Two Arrays
To merge two arrays in Java programming, you have to ask to the user to enter the first array size and then ask to enter the first array elements. Ask the same for the second array. Now initialize all the elements of the first and second array to the third array say merge[ ] and at last print the value of the third array i.e., merge[ ] as shown in the following program.
Java Programming Code to Merge Two Arrays
Following Java Program ask to the user to enter the both the array to merge and display the merged array on the screen (Here we display the direct merged array). You can also sort the two array before merge to merge these array in sorted order. So to learn about sorting, you can use the following three techniques to sort an array :
Java Bubble Sort
Java Selection Sort
Java Insertion Sort
AnuragPatel:
plz mark my answer as an BRAINLIEST ANSWER
Similar questions