import java.util.*;
public class ReverseArray {
public static void main(String args[]) {
int my_arr[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
for (int i = 0; i < my_arr.length/2; i++) {
int temp = my_arr[i];
my_arr[i] = my_arr[my_arr.length - i - 1];
my_arr[my_arr.length - i - 1] = temp;
}
System.out.println("The reverse string is : "+Arrays.toString(my_arr));
}
}