class 从前有座山
{
public void 讲故事()
{
System.out.println("从前有座山 山上有座庙 庙里有个老和尚在讲故事:");
this.讲故事();
}
}
public class 讲个没完没了
{
public static void main(String args[])
{
从前有座山 山上有座庙 = new 从前有座山();
山上有座庙.讲故事();
}
}
{
public void 讲故事()
{
System.out.println("从前有座山 山上有座庙 庙里有个老和尚在讲故事:");
this.讲故事();
}
}
public class 讲个没完没了
{
public static void main(String args[])
{
从前有座山 山上有座庙 = new 从前有座山();
山上有座庙.讲故事();
}
}