publicclassBoomerangextendsSprite{privatestaticdoubleDURATION = 0.5; // secs// total time to cycle through all the imagesprivateintperiod; // in ms; the game's animation periodprivateBricksManagerbrickMan;privatePoint[] boomPath;

After a click look it seems fine, but I cannot be sure since I do not know all of the types of your variables.

Are you using eclipse? if so then I have this problem all the time, eclipse will throw a hissy fit and you will just have to play along and try to find a way to make it happy. try selecting everything, cutting it, and then pasting it right back in the same spot, or something of that nature, often just the complete change it code will make it happy.

I honestly don't know why this happens, and if anyone knows a better solution, I would really like to know because this happens to me very often and it is a PITA!

Now we've solved the simple problem, onto something more fundamental - inheriting Boomerang and JumperSprite from Sprite is Bad and Wrong.

A boomerang is not a sprite, it's a tangible object which happens to have a visible representation. That should probably be coded by a Boomerang class which has a Sprite as a member, not inheriting from Sprite.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org