Why output of this code is "false"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why output of this code is "false"?

I can't understand why this code show false. https://code.sololearn.com/cQvwUbbmuQFu/?ref=app

4th Aug 2019, 4:35 PM
Amir01
Amir01 - avatar
2 Answers
+ 3
https://www.google.com/amp/s/www.geeksforgeeks.org/difference-equals-method-java/amp/ In Java, you need to use the string method equals() to compare strings. https://code.sololearn.com/cJYwR36p525W/?ref=app
4th Aug 2019, 4:38 PM
Zeke Williams
Zeke Williams - avatar
+ 1
Zeke Williams Tnx!
4th Aug 2019, 4:46 PM
Amir01
Amir01 - avatar