Can you prepare the program that reads a text file and stores the data into an Object called fruit Say the text file data is as follows for example:
Apples,9,10.50,joe
Bananas, 15, 11.00,crystal
Cranberry, 2, 9.00, sara
Dragonfruit,5,13.00, amber
Okay now as you can see the first index is already sorted then I need to use a quick sort algorithm to sort the second index which is for instance quantity and then third index price by descending order and customer by alphabet.
These should all be put into an Object called fruit and the text file should be called for instance fruit.java.
Can you help me get started on this problem? Thanks