+ 1
Izzy the Iguana Challenge
I decided to go back to this challenge and try to solve it in Java after I solved it in Python. Hereâs my attempt: https://code.sololearn.com/cyOVdSY79gja/?ref=app For some reason, the variable âpointsâ stays at 0, so the output is always âTime to waitâ. Why?
2 RĂ©ponses
+ 4
McInventor29
In java == compares object not value so you need to use equals method like
food.equals("Mango")
+ 2
I Am AJ ! It worked! Thank you!