I get an error saying "i can not be resolved" I also get "syntax error on token else"
Forum
Off Topic Java for problemJava for problem
2 replies 1
I get an error saying "i can not be resolved" I also get "syntax error on token else"
Dark Byte has written
I know a lot of you study a language other than Lua so I thought you might know Java. Well I am studying Java and I am having trouble with the for loop. This i just a test obviously it is not an app just a test for experience.
I get an error saying "i can not be resolved" I also get "syntax error on token else"
I get an error saying "i can not be resolved" I also get "syntax error on token else"
1
for ( int i = 30; i > 0; i--) //dont put a semicolon here..
but what about the else why does it not work i tried taking it out mbut it still prints 15
edit
oh i had a semicolon after the if
well here is the final (not that any one would want it)
edited 1×, last 26.06.10 02:56:55 am
1