Quote:
Originally Posted by MoodySpark
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).