1 2 3 4 5 6 7 8 9 10 11
package test5; public class NestHost2 { private int value; public class Foo { int foo() { return value++; } } public class Bar { int bar() { return value++; } } }