public class MainClass { public static int i = 0; public static void main(String[] argv) { System.out.println(this.i); } }
Exception in thread "main" java.lang.Error: Unresolved compilation problem: Cannot use this in a static context at MainClass.main(MainClass.java:5)