1. Create a package with the name of DriverClass
a. Your DriverClass contains method main().
2. Create an interface with the name of SortADTInterface whichcontains the following methods’ headers: public voidinsertionSort(int arr[]); public void printArray(int arr[]);
3. Write a class called InsertionSortClass that implements theinterface SortADTInterface.
4. In the main(), include the following items:
a. An array a = { 3, 2, 5, 6, 1}
b. An object with the type of InsertionSortClass
c. Call to the the methods insertionSort() and printArray() withthe appropriate array as parameter.
5. The output is sorted array a.
Expert Answer
An answer will be send to you shortly. . . .
PayPal Gateway not configured
PayPal Gateway not configured