创建其他类中非静态内部类

1
2
3
4
5
6
7
8
9
10
11
12

public class JHSDB_TestCase {
class NoStaticTest {}
}

class Outter {
private void test() {
JHSDB_TestCase jhsdb_testCase = new JHSDB_TestCase();
JHSDB_TestCase.NoStaticTest noStaticTest =
jhsdb_testCase.new NoStaticTest();
}
}