Pass object references to the print and println methods
The first statement in Listing 12
- passes the reference to the object
- stored in the first element of the array
- to the print method
The third statement in Listing 12
- passes the reference to the object
- stored in the second element of the array
- to the println method.