Assume that dataTransmitter is a variable that refers to an object that provides a method, named sendDouble. There is one double argument for this method. Assume that a double variable called x has already been declared and initialized to some value. Invoke the method, using this variable’s value as an argument.
LANGUAGE: JAVA
CHALLENGE:
Assume that dataTransmitter is a variable that refers to an object that provides a method, named sendDouble. There is one double argument for this method.
Assume that a double variable called x has already been declared and initialized to some value. Invoke the method, using this variable’s value as an argument.
SOLUTION:
dataTransmitter.sendDouble(x);