0

I'm trying to do a code that uses letters for choices, like a quiz. I can't understand how to put letters in the if statement though. This is the code I'm trying to do.

if (choice == "A") {
    //true
} else if (choice == "B") {
    //false
}

Sorry because I'm quite new to java.

Federico klez Culloca
  • 26,308
  • 17
  • 56
  • 95

0 Answers0