|
You cannot use a try without a catch/finally block. You can remove the try completely since you've thrown Exception, but a better solution would be to try/catch and handle it gracefully then allowing the main to throw an exception (which terminates the program).
Don't forget to actually do something with lines after. Right now, you simply collect them and shuffle it, but you don't have any output or any other processing.
|