- 1
package statictest; public class StaticTest { public static void main(String args[]) { System.out.println(Test.i); } }
Solve the query
2 odpowiedzi
0
Did you check whether your code was valid before posting it here?
Here's tips for you on posting a question 👍
https://www.sololearn.com/Discuss/333866/?ref=app
0
.declare static field i inside class with value
.instead of Test use StaticTest