Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Help i dont know wat i did wrong


i cant figure out what is wrong

What level is this? :roll_eyes:

its an arena level but i just dont understand what is wrong with my code

eeee! id do java!!!

You have more { than }, which I think is why the red exclamation mark is showing. Each { needs to be matched to a }. This is easier to do if you are consistent with the indentation.

Also, I think the while(true) statement in the middle isn’t helping.

Post again if it still isn’t working, ideally with a short description of what is (or isn’t) happening.

try putting a “}” in front of line 15 else and delete line 14

I think that you else out of the while true

no all of his code is in a while true loop