Program to reverse an array in java

Let’s see a¬†program to reverse an array in java.

 

Output is :-

1
2
9
7
8
4

Top