Ask Question
9 October, 15:52

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

+5
Answers (1)
  1. 9 October, 19:22
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers