Assume that logger is a reference to an object that has a method named printLarger that accepts two int arguments and returns no value . Two int variables , sales1 and sales2, have already been declared and initialized.

LANGUAGE: JAVA

CHALLENGE:
Assume that logger is a reference to an object that has a method named printLarger that accepts two int arguments and returns no value.

Two int variables , sales1 and sales2, have already been declared and initialized.

Write a statement that calls printLarger, passing it sales1 and sales2.

SOLUTION:

LANGUAGE: JAVA

CHALLENGE:
Assume that logger is a reference to an object that has a method named printLarger that accepts two int arguments and returns no value.

Two int variables , sales1 and sales2, have already been declared and initialized.

Write a statement that calls printLarger, passing it sales1 and sales2.

SOLUTION:

logger.printLarger (sales1, sales2);