Question 6 Programming 20 Points Write Static Method Called Append Takes Two Integer Array Q43853549
Question 6 (Programming) (20 points) Write a static method called append that takes two integer arrays as parameters and that returns a new array that contains the result of appending the values of the second array at the end of the first array. For example, suppose that arrays list1 and list2 have been declared as follows: int [] listl = (2, 4, 6}; int[] list2 = (1, 2, 3, 4, 5); If we make the following call: append (listl, list2) The method will return a new array that contains the following values: (2, 4, 6, 1, 2, 3, 4, 5] If the call instead had been: append (list2, listl) Then the method would return a new array that contains: [1, 2, 3, 4, 5, 2, 4, 6] Your method should not change either of the arrays passed as parameters. Show transcribed image text Question 6 (Programming) (20 points) Write a static method called append that takes two integer arrays as parameters and that returns a new array that contains the result of appending the values of the second array at the end of the first array. For example, suppose that arrays list1 and list2 have been declared as follows: int [] listl = (2, 4, 6}; int[] list2 = (1, 2, 3, 4, 5); If we make the following call: append (listl, list2) The method will return a new array that contains the following values: (2, 4, 6, 1, 2, 3, 4, 5] If the call instead had been: append (list2, listl) Then the method would return a new array that contains: [1, 2, 3, 4, 5, 2, 4, 6] Your method should not change either of the arrays passed as parameters.
Expert Answer
Answer to Question 6 (Programming) (20 points) Write a static method called append that takes two integer arrays as parameters and…
OR