The assignment instructions themselves are quite vague, but here is what is needed:

"Using a JFileChooser, prompt the user for a file to open. Using a Scanner, read one line from this file
at a...