I was using these lines of code...
public static final int WIDTH = 240;
public static final int HEIGHT = 350;
public static final int SCALE = 2;
but I always got these errors ...
Illegal modifier for parameter WIDTH; only final is permitted
Illegal modifier for parameter HEIGHT; only final is permitted
Illegal modifier for parameter SCALE; only final is permitted
I expect that you are trying to use
public
andstatic
on local variable declarations or method parameter declarations. Locals / parameters can only befinal
.You can only use
public
andstatic
on class members (or similar).