My apologies.
Currently I have the program set up for you to enter 10 words and then it will randomly choose one of the words for you to guess. After that I really have no idea what to do, so this is what I tried
System.out.print("\n\nPlease guess a letter: ");
String letter = TextIO.getln();
if(letter == theWord.substring(theWord.length()))
System.out.println(theWord.substring(g));
Right now I'm trying to get it, so when you guess a correct letter it will print out the letter in the word like this.
Suppose the word is Dog and I guessed "O".
-O-
And so on.
|