Write the code for invoking a method named sendNumber. There is one int argument for this method. Send the number 5 as an argument to this method.

Write the code for invoking a method named sendNumber. There is one int argument for this method. Send the number 5 as an argument to this method.

LANGUAGE: JAVA

CHALLENGE:

Write the code for invoking a method named sendNumber. There is one int argument for this method. Send the number 5 as an argument to this method.
Assume that sendNumber is defined in the same class that calls it.

SOLUTION:

sendNumber (5);

Add comment