1 package test2; 2 3 public class AddLocalVar { foo()4 public int foo() { 5 int j = 1; 6 return j; 7 } 8 } 9