#tolowercase doesn't work

4 messages · Page 1 of 1 (latest)

slim arch
#
playAgainInput = sc.next();
      playAgainInput = playAgainInput.toLowerCase();
      if (playAgainInput != "yes")
      {
        playAgain = false;
      }```
playAgain never gets set to false.
snow helmBOT
#

Hey, @slim arch!
Please remember to /close this post once your question has been answered!

#

Looks like you're having some trouble comparing strings, check out this stackoverflow question for help.