error: Illegal modifier for parameter

后端 未结 1 1016
执笔经年
执笔经年 2021-01-25 07:21

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;
<
相关标签:
1条回答
  • 2021-01-25 07:32

    I expect that you are trying to use public and static on local variable declarations or method parameter declarations. Locals / parameters can only be final.

    You can only use public and static on class members (or similar).

    0 讨论(0)
提交回复
热议问题