My professor gave me a code for the methods to be used in sorting an array of names lexicographically, but I have no idea how what to write inside the main class to show that the program works. I am very new to java, so please if you know how to do this could you write it as simple as possible for me to understand it. Thanks in advance.

This is are the classes

```
public class quicksort_class {

int[] array1 = new int[11];

public quicksort_class(int[] w)
{
    array1 = w;
}

private static void sort(String[] string, int leftlimit, int rightlimit) {

    if (rightlimit > leftlimit) 
    {
    int midpoint = partitionstep(string, leftlimit, rightlimit);

    sort(string, leftlimit, midpoint - 1);

    sort(string, midpoint, rightlimit);
    }
}

public static int partitionstep(String[] string, int leftlimit, int rightlimit)
{   
    String midpoint = string[rightlimit];

    int lpointer = leftlimit;

    int rpointer = rightlimit;

    String temp = "";

    while(string[lpointer].compareTo(midpoint) <= 0)
    {
        lpointer = lpointer ++;
    }
    while(string[rpointer].compareTo(midpoint) > 0)
    {
        rpointer = rpointer --;
    }

    if(lpointer > rpointer)
    {
        temp = string[lpointer];

        string[lpointer] = string[rightlimit];

        string[rpointer] = temp;

        System.out.println(string);
    }

    while(lpointer < rpointer)
    {
        temp = string[lpointer];

        string[lpointer] = string[rightlimit];

        string[rightlimit] = temp;
    }

    return lpointer;
   }
}

```

This is the main class (as you can see I have no idea what to write)

```
package quicksort;

public class Quicksort {

public static void main(String[] args) {

 }
}

```