2011-10-08 | Paul Boddie | file changeset files shortlog | Minor formatting changes. |
dmd@188 | 1 | public class EnclosingMethodTest { |
dmd@188 | 2 | public int outer(int a) { |
dmd@188 | 3 | class InnerClass { |
dmd@188 | 4 | public int inner(int b) { |
dmd@188 | 5 | return b+1; |
dmd@188 | 6 | } |
dmd@188 | 7 | } |
dmd@188 | 8 | InnerClass inc = new InnerClass(); |
dmd@188 | 9 | return inc.inner(a); |
dmd@188 | 10 | } |
dmd@188 | 11 | } |
dmd@188 | 12 |