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
  • 24,336
  • 15
  • 57
  • 93

0 Answers0