package Examples; public class Simple0 { public int foo(Integer i) { System.out.println("...i = " + i); if (i > 0) { System.out.println("...in then"); i++; } else { System.out.println("...in else"); } i--; System.out.println("...done"); return i; } static public void main(String[] args) { Simple0 s = new Simple0(); s.foo(10); s.foo(0); } public static int x = 0; }