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 Réponses
+ 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
МамаЗузу