Question: I have a library of words in java and a method to randomly select one of those words. I need to know how to write
I have a library of words in java and a method to randomly select one of those words. I need to know how to write code in java that can create a method that keeps track of the guesses. I created a index boolean array for all of the letters in the alphabet. Please show me how I would write a method that compares the secret word to a character's input and alters the boolean array to show it has been guessed.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
