So I am doing some questions for my programming class using blueJ and I am not very good
But on the question we have to complete a code but I have started abit and got:
public class Screen
{
private int xRes;
private int yRes;
public Screen(int xRes, yRes)
{
.....
}
public int numberOfPixels()
{ // product of xRes and yRes
.....
}
public void clear(boolean invert) {
.....
}
}
But when I try to compile it says '<identifier> expected'
and I am not sure what it means
any help?