+ 2
Why the logical operand == could not work properly when comparing data inputted from terminal with directly defined strings.
2 odpowiedzi
+ 3
Compare two strings:
String input;
String word;
use equals method:
input.equals(word) --> returns true if they are the same, false if not
You can look here for difference between == and equals():
https://stackoverflow.com/questions/7520432/what-is-the-difference-between-and-equals-in-java
+ 2
://Mustafa Walid Ali Alzahlan please attach your source code so community can help you