Question: Write a method named printReverse() that accepts an int array as input and prints that array in reverse order. a. All elements should be printed
Write a method named printReverse() that accepts an int array as input and prints that array in reverse order.
a. All elements should be printed on the same line, separated by a space
b. A new line should be printed after the entire array prints
c. If the array passed in held the values: {3,2,1}
d. Output: 1 2 3 //newline printed here
Direction: Write a method named printReverse() that accepts an int array as input and prints that array in reverse order.
All elements should be printed on the same line, separated by a space
A new line should be printed after the entire array prints
If the array passed in held the values: {3,2,1}
Output: 1 2 3 //newline printed here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
