Method and function calls (cont'd)
Display Listing 1.
The ultimate goal is to write the last statement in the block of code following the comment "Show various...".
This statement calls the coach's say method with the single String parameter constructed by embedded calls to the functions listed earlier.
Using local variables
This code could have been simplified through the use of local variables, but we haven't studied that topic yet.