Answer:
The answer to this question can be given as:
Statement:
//declare method add with two-parameter.
public static int add(int euroSales, int asiaSales)
{
return euroSales+asiaSales;
//return value.
}
public static void main(String[] args)
//declare main function
{
int eurasiaSales;
//declare integer variable
eurasiaSales=add(4,7);
//calling function by passing value in arguments.
//variable hold return value.
System.out.print("Sum is:"+eurasiaSales); //print value.
}
Explanation:
In the above statement firstly we declare the function that name is already given in the question that is add() function. In this function, we pass two integer variables as a parameter that is euroSales and asiaSales. This function returns the sum of passing variable. Then we declare the main function in that function we declare an integer variable that is eurasiaSales that hold the return values of the add function in the last we print eurasiaSales variable value.