Computers and Technology
Esco
14

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

+1
(1) Answers
Flothyan

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

Add answer