Hello. I am new to the java programming language. I am looking for some assistance on the following java problem. I am having some trouble figuring it out. Here it is: 1.Takes an array of integers as a parameter. 2.Creates a new integer arrays containing the reversal of the parameter array. 3.Return this new array. Can anyone offer any insight? Thanks.
Create a class. Declare a method which accepts an int array.
2. Creates a new integer arrays containing the reversal of the parameter array.
Inside the method, declare another int array of the same length. Traverse through the first array from the last index , take that value and assign it to the newly created array from the first index. Use two counters, one to count from back and one from front.
3. Return this new array.
Return the newly created array's reference. Hope this helps you, Uma...