#need help with error i am a beginner

1 messages · Page 1 of 1 (latest)

unreal hedgeBOT
#

<@&987246399047479336> please have a look, thanks.

charred cypress
#

You have one closing brace too much. The else on line 29 doesn't have an opening brace and thus the closing one ends the method, with the next one closing the class. If you format your code properly then this should be quite apparent

upbeat shell
#

@charred cypress i am a bit confused on what you mean

rapid breach
#

I recommend using a proper IDE like intelliJ CE which will help you with these kinds of issues, and using consistent formatting.

unreal hedgeBOT
upbeat shell
#

i won't be able to as i am using a website whcih my university has given me

rapid breach
#

You close your class on line 41.

#

Just count the opening versus closing brackets.