public class ReverseArray{ static void reverse(int arr[],int n){ int rarr[]=new int[n]; int m=n; for(int i=0;i