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]

Complete the following file:

ArrayOps.java

import java.util.ArrayList; public class ArrayOps { /** This method goes through the array of integers identified by the only parameter, creating a new ArrayList from the array, but in reverse order. @param theArray, an array of integers @return reversedArr, the new ArrayList of Integers */ public static ArrayList copyReverse(int[] anArray) { // declare new ArrayList // your work here // loop though anArray, in reverse, // storing each element in the ArrayList // your work here // return new ArrayList // your work here } }