~/ learn/ java-from-zero/ cards/ Strings, immutability & text blocks
1 of 4

Type the correct String comparison

Type the correct String comparison

Answer

if (input.equals("yes")) {

equals compares character contents. == compares object references and will bite you on Strings.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/e5b5d7b5-0da2-43fc-a3dc-0d88be881a61/flashcard utf-8 LF