The main method

The main method is shown in Listing 5.

Much more than the name has changed. 

The entire program was contained in the method named my_first_method in the previous program.

The main method in this program simply calls two other methods named setTheStage and playTheShow to get the job done.

These are two new methods that I created for the reasons that I explained earlier.

Listing 5. The main method for the program named Alice0125b.
  public void main ( ) {
    
       // Program Alice0125b, Copyright 2007, R.G.Baldwin
  world.setTheStage ( );
  world.playTheShow ( );
  }