Consider an array of integers. We need to copy that array into an ArrayList, in reversed order. To do this, you need to complete the method, named copyReverse, in the class named ArrayOps.java. There is only one parameter to this method: the original array of integers. The method returns the new ArrayList, with the contents reversed in order from the original array.
For example, consider the following array of integers:
[3, 9, 27, 81]When you call the copyReverse method with this array, the return value should be a new ArrayList containing the same elements, but in reversed order:
[81, 27, 9, 3]