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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!