There are two things that are different about the two blocks of code. One
is the sequence number in the first line of output produced (0 or 1). The
other is the name of the string being described (arg0 or
arg1). That suggests a method with two arguments. The method is
going to be doing some printing, so it should be a procedure. For example:
// Describe an argument.
void describe (int i, String arg)
{
...
}
Then it can be called from the print method like this:
describe (0, arg0); describe (1, arg1);