JAVA - Quick Sort .txt and Return
-----------------------------------------------------------------------------
The program should input a .txt file like below and mustuse a Quick sort Algorithm
================
6 10
4 19 10 12 8 6
0 1 2
3
================
The first number \"6\" represents the index ofthe element to return after sort
the second number on the top \"10\" representsthe number of elements or size of array.
The following numbers and lines are theelements that need to go into the array and be sorted.
-----------------------------------------------------------------------------
It should then:
1) Sort using the natural variant of quick sortalgorithm and return the \"6\"th element
the \"6\" comes from the text file and should work with whatevernumber the text file has as long as its less than or equal to thesecond number, in this case \"10\".
Example Output given above .txt file:
Quicksort finds 8.