r/javahelp • u/Initial_Lawyer_6840 • 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
i tried to get a picture of the whole cascading line
0
Upvotes
View all comments
Show parent comment
1
u/aqua_regis Nov 05 '25
And that's for a reason. Did you read /u/Automoderator's second comment?
You should have edited your post to comply with the rules here. Screenshots are explicitly forbidden here. Code has to be posted in text, properly formatted as code block.