Assume the availability of a class named Logger that provides a static method , printLarger that accepts two int arguments and returns no value.

Assume the availability of a class named Logger that provides a static method , printLarger that accepts two int arguments and returns no value.

LANGUAGE: JAVA

CHALLENGE:

Assume the availability of a class named Logger that provides a static method , 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);

Add comment