xhtml
 

Exercise 16: Arguments

Here is a program which prints out various information about each of its two arguments. You will see that it has two very similar sections of code. Refactor the program by adding a new method called describe which contains this common code, and then make two calls to it to replace the original code.

Hint


Back