Write the code for invoking a method named sendVariable. There is one int argument for this method . Assume that an int variable called x has already been declared and initialized to some value . Use this variable ‘s value as an argument in your method invocation.

LANGUAGE: JAVA

CHALLENGE:

Write the code for invoking a method named sendVariable. There is one int argument for this method .
Assume that an int variable called x has already been declared and initialized to some value . Use this variable ‘s value as an argument in your method invocation.
Assume that sendVariable is defined in the same class that calls it.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,