java - Why is eclipse showing compilation errors when my class is completely empty? -
my class looks this:
package controller; public class testsprites { }
when try run it, console spits out this:
exception in thread "main" java.lang.error: unresolved compilation problems: syntax error on tokens, ( expected instead left-hand side of assignment must variable syntax error, insert ")" complete expression syntax error, insert "assignmentoperator expression" complete assignment syntax error, insert ";" complete statement @ controller.testsprites.<init>(testsprites.java:55) @ controller.testsprites.main(testsprites.java:131)
i have no idea what's going on. doing same thing earlier when had code in class, took out, saved it, refreshed, exited , reopened eclipse. if makes difference, code triggering on before was:
panel = new jpanel(){ public void paintcomponent(graphics g){ super.paintcomponent(g); for(spriteobject j : sprites) { j.draw(g); } } };
i fail see issue there. why happening, , how stop it?
Comments
Post a Comment