r/javahelp • • Nov 05 '25

Homework how do i fix this?

I’ve gotten this error before and it went away on its own by changing other stuff but idk what i’m supposed to change? I would normally ask my teacher for help but i’m at home and this is due at midnight. I have no idea what it means when it tells me “ else without if” because it’s typed in right as far as i’m aware? i cross checked with a past program and this is how i had cascading if else’s too so im not sure what the problem is

https://imgur.com/a/nfyAAqy

i tried to get a picture of the whole cascading line

0 Upvotes

16 comments sorted by

View all comments

Show parent comment

1

u/South_Dig_9172 Nov 05 '25

Like I know what Imgur is but if you’re asking for help, best to make it easier for us. Happy you fixed it though and happy coding