public class ReverseArray {
    /* This program reverses the elements of the array
     * { "A", "B", "C", "D", "E" } in place, then prints its contents.
     *
     * Examples:
     * > java ReverseArray
     * E D C B A
     */
    public static void main(String[] args) {
        int n = a.length;

        for (int i = 0; i < n / 2; i++) {
            String temp = a[i];
            a[i] = a[n - i - 1];
            a[n - i - 1] = temp;
        }
    }
}