class NiMingLei
{
public static void main(String[] args)
{
Outer a= new Outer();
a.function();
}
}
class Outer
{
static int y=4;
void function()
{
void show()
{
System.out.println(123);
}
class Inter
{
void method()
{
System.out.println(234);
}
}
new Inter().method();
}
}
NiMingLei.java:15: 错误: 非法的表达式开始
void show()
^
NiMingLei.java:15: 错误: 需要';'
void show()
^
2 个错误