View Single Post
Old 08-14-2012, 04:40 AM   PM User | #11
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,650
Thanks: 4
Thanked 2,451 Times in 2,420 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
Quote:
Originally Posted by MoodySpark View Post
right well I removed the try so it's just collecting the txt file and putting it into an Array list, I suppose I just need it to start giving the user a number of guesses to the word now.
Yep, but you need to choose a word first. You can try/catch a lines.get(0) to pull the first word out of the list. Its not actually a checked exception, but just like the read you should try/catch gracefully (readline is actually a checked exception which is why you must try/catch or throws off of the method using it otherwise the compiler throws an error).
Fou-Lu is offline   Reply With Quote