1 package test3; 2 3 public class InsertAfter { 4 int k; 5 InsertAfter()6 public InsertAfter() { 7 k = 3; 8 } 9 test()10 public int test() { 11 foo(); 12 return k; 13 } foo()14 public void foo() { 15 ++k; 16 } 17 } 18