int[] reverseArray = new int[20];
        int index = 0;

        // reverse the array
        for (int i = array.length - 1; i >= 0; i--)
        {
            reverseArray[index] = array[i];
            // System.out.println(array);
            index++;
        }



        array = Arrays.copyOf(reverseArray, 20);

        for (int i = 0; i < array.length; i++)
        {
            System.out.println(array[i]);   //<-------- this prints out in descending order
        }
I sorted the array and then reversed it. Since you need the original array I then copied it back into the variable array. Printing out the array shows that it is in descending order but it is not transferring over to the main method. Is it out of scope? I don't know why because when printed in main it is still in ascending order??? I tried to change the return value of the sort method to int[] but apparently that is cheating.... Thanks