Why is the condition not met? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is the condition not met?

https://code.sololearn.com/cI4X8DNZ5ARB/?ref=app INPUT "cat" and see error.

27th Jun 2021, 5:02 PM
МамаЗузу
2 Answers
+ 2
== compare references, not values: https://www.javatpoint.com/string-comparison-in-java
27th Jun 2021, 5:06 PM
visph
visph - avatar
+ 2
Thanks you very much.how many subtleties in java!
27th Jun 2021, 5:25 PM
МамаЗузу