I\'m new to programming and trying to nut out a basic guessing game, but I have this error. Need some help as I\'ve set \'guess\' to char, then want to compare
char
Primitives are compared with ==. If you convert the chars to the wrapper classes Character, then you can use .equals().
==
Character
.equals()
Either change
char guess; to Character guess;
char guess;
Character guess;
or
if(guess.equals(wordContainer[j])) to if(guess == wordContainer[j])).
if(guess.equals(wordContainer[j]))
if(guess == wordContainer[j]))