0
Declare a static, stuck on Java
I am stuck on an extremely basic Java question, and I honestly don't know how to proceed. The question is this: "Fill in the blank to declare a static variable." There is only a blank, so nothing precedes it and nothing comes after. I have tried "static", "public static", "private static", "static int" and several other combinations, including ending with ; and seemingly, nothing works.
2 ответов
+ 4
Is this in the intermediate course under the lesson "static"?
+ 3
Thomas
There is not enough information for clear answering.. Please report to sl.
Temporarily, try
public static int x = 0;