I'm fairly new to Java and I'm trying to read data from a file, and then implement the Quicksort algorithm to sort the resulting the array. The file is entered by the user, but it must adhere to the following format:
(where the first line indicates the number of numbers that are to follow).
I have searched the forum thoroughly and although there is a plethora of threads addressing reading a file line by line, I don't know what modifications to make when I am prompting the user for a file as opposed to just entering one. I am not worried about Quicksort as much as I am reading the file and then converting the strings to integers. If someone can help, I'd be more than appreciative.