Write a program to reverse the elements present in an
array.
Public class ReverseArray {
Public static void main(String[] args) {
Int[] arr = {1, 2, 3, 4, 5};
[Link](“Original Array: “);
For (int I : arr) {
[Link](I + “ “);
[Link](“\nReversed Array: “);
For (int I = [Link] – 1; I >= 0; i--) {
[Link](arr[i] + “ “);
Output
Original Array: 1 2 3 4 5
Reversed Array: 5 4 3 2 1