That’s why == often doesn’t work on Strings ; Strings are objects, and doing == on two string variables just compares if the address is same in memory, as others have pointed out. .
That’s why == often doesn’t work on Strings ; Strings are objects, and doing == on two string variables just compares if the address is same in memory, as others have pointed out. .