Write a Java program to create a new array of length 2 from two arrays of integers with three elements and the new array will contain the first and last elements from the two arrays
Write a Java program to create a new array of length 2 from two arrays of integers with three elements and the new array will contain the first and last elements from the two arrays Test Data: array1 = 50, -20, 0 array2 = 5, -50, 10 Sample Output:
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer