Java Program to copy all elements of one array into another array
Example 1:
Output :
Elements of original array: 1 2 3 4 5 Elements of new array: 1 2 3 4 5
Example 2:
Output :
Elements of Source List: [50, 10, 20] Elements of Destination List: [one, two, three, four, five] Elements of Destination List after copying Source List: [50, 10, 20, four, five