Question: Need help ASAP! Complete without import Java.io.*; and import Java.util.*; 7. Add a static method to the class Pa3 your-id that receives an int array
7. Add a static method to the class Pa3 your-id that receives an int array and nothing else. The method lal Latest Sale | Sho then returns a new array with elements containing a copy of the elements in the passed array, but in reverse order. For example, if the passed array contains the values 34 4519 -76 the returned array contains the values 67 19 4534 8. In method main of class Pa3 your-id, add code to: (a) Prompt for and receive from the user the size of the initial array (b) Call the method of (2), passing the size of the array and assigning the returned array to an array reference variable. (c) Call the methods of (3) and (4), passing the array returmed from (2) in step (b). The retun of each method called is output with an appropriate label. (d) Call the method of (5), passing the array retuned from (2) in step (b). (e) Call the method of (6), passing the array retumed from (2) in step (b) (6) Call the method of (7), passing the array returned from (2) in step (b) and assigning the returned array to an array reference variable. The contents of both arrays are then output with the values in matching indexes placed next to each example, if the two arrays contained the values other, one p air to a line with a comma between them. For 34 45 19 7 6 and 6 -7 19 45 34
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
