1 package test3; 2 3 public class InnerMethod { 4 static int f = 0; 5 static int counter = 3; test()6 private static void test() {} 7 static Inner inner = new Inner(); 8 9 static class Inner { test()10 protected static void test() { f = 1; } 11 } 12 foo()13 public int foo() { 14 test(); 15 return f; 16 } 17 } 18