- 1
package statictest; public class StaticTest { public static void main(String args[]) { System.out.println(Test.i); } }
Solve the query
2 Answers
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