I am stuck here and have done various research on else if statements and it seems to be what im meant to do. Please help if you can.
I am getting an else without if error.
Also, as you might have seen, Im also stuck with does not contain, guessed already. Any input appreciated.
Brendan
Code:
private boolean isValidGuess() { if ((Character.isLowerCase(guess)) && (!guessedAlready.contains(guess))); { return true; } else if (!Character.isLowerCase(guess)) { return false; System.out.println(guess + " is not a lower case entry"); } else if(guess == '*') { System.out.println("You gave up!"); } else { return false System.out.println("You guessed " + guess + " already"); } }
Also, as you might have seen, Im also stuck with does not contain, guessed already. Any input appreciated.
Brendan
Comment