I got this .java and i want to compile it to a .class. The only thing is that the guy who actually made this used very sloppy code. I got 14 errors and they're all the same. There are 3 lines that have all the errors. They all have the same errors and the only thing is I don't know how to fix them.
Code with error example:
if(!i$.hasNext())
goto L2;
else
goto L1;
The error has iS at the goto
and is saying illegal start of expression
. That's the first error.
- Another is where the
L2
is and is sayingnot a statement
. - And again at the else it says
'else without 'if'
. - And again with the goto illegal start of expression.
I also know that goto isn't even a statement, its reserved and isn't used, partly because it is not used in java! But if there is anyone out there who knows a statement other than goto which will link back to a label please tell, I will be much grateful!
Update: May I point out that I did not make this.