lesc4aamascn1aya lesc4aamascn1aya
  • 07-11-2016
  • Computers and Technology
contestada

Write the definition of a method twice, which receives an integer parameter and returns an integer that is twice the value of the parameter .

Respuesta :

kingburrito
kingburrito kingburrito
  • 07-11-2016
public static int methodName(int a, int b){
      a = a * 2;
      b = b * 2;
}
int result = doubling(5, 10);
System.out.println(result);
//result would be 10, 20
Answer Link

Otras preguntas

Read the sentence below: Both effectively changed the popular opinion about emotional issues for their countries and brought in a wave of change that was long o
True or false? 12-x=x-12 (for all values of x)
The two main types of fiber are A. cellulose and mannitose. B. saccharrides and bran. C. soluble and insoluble. D. refined and unrefined.
King Edward I formalized baronial participation in the English government through what institution?
What is an adjective
_________ heart disease is the result of reduced blood flow to the heart caused by the build-up of fatty deposits in the arteries.
Compare the perimeters of the two regular figures. Which statement is true? A. The perimeter of the octagon is greater than that of the hexagon. B. The perimete
help me with this questions please
How batteries work? What are some possible mterials you could use to make your battery?
A number has 2 tens and 15 ones. Write the number in words.