English Write Static Java Method Int L Reverse Int Arr Returns New Array Containing Elemen Q34259534
Write java method
(a) English Write a static Java method int[l reverse (int [] arr) that returns a new array containing the elements in arr in reverse order. The input array arr must not be changed. (b) English Write a static Java method containsDuplicates (ArrayList list) that returns true if (and only if) the list contains any duplicate elements. That is, the same integer occurs twice (or more) in the list. Show transcribed image text (a) English Write a static Java method int[l reverse (int [] arr) that returns a new array containing the elements in arr in reverse order. The input array arr must not be changed.
(b) English Write a static Java method containsDuplicates (ArrayList list) that returns true if (and only if) the list contains any duplicate elements. That is, the same integer occurs twice (or more) in the list.