class StaticStudy
{
static
{
System.out.println("a");
}
说一下这段代码我是照着视频敲得,可是17行老错误。有大神顺便能给各行加个注释,谢谢
}
class StaticStudyFirst
{
static
{
System.out.println("b");
}
}
public static void main(String[] args)
{
new StaticStudy();
new StaticStudy();
System.out.println("over!");
}
static
{
System.out.println("c");
} |