Ask Question

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

+3
Answers (1)
  1. 20 January, 14:50
    0
    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
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write the definition of a method twice, which receives an integer parameter and returns an integer that is twice the value of the parameter. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers