Ok. So basically my friend is teaching me Java and my school teacher recommended this program to me. So I started making a basic scenario which includes the classic flash game style of dodging meteors while in a spaceship.
Sadly it was not so simple, my friend has tried his best to help me with this and claims it is prefect coding and nothing is wrong with it.
Here is the code.
I would like you to focus on this line -
My friend is near fluent in Java and claims this is perfect coding and there is nothing wrong with it, yet while trying to compile the file an error occurs while states "Illegal start of expression".
After a few hours of constantly re-writting the code to see if there is any way around this, I came here for help.
Do please help me :/
public class deltemeteor extends World { public boolean onContactwithSide(int i, int j) { if (getX() <= 5 || getX() >= getWorld().getWidth() - 5) { private void removeMeteor(World world, int i, int j, int k) } else { return null; } } }
private void removeMeteor(World world, int i, int j, int k)