View Single Post
Old 08-13-2012, 10:36 PM   PM User | #9
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,662
Thanks: 4
Thanked 2,452 Times in 2,421 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
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.
Fou-Lu is offline   Reply With Quote