10.0k views
5 votes
g A function called processArray takes one argument: an array of strings to be processed. It returns nothing. Write the function header for the processArray function

User Nirav Modh
by
5.1k points

1 Answer

5 votes

Answer:

Following are the declaration of the method:

void processArray(String x[])//defining a method processArray that holds a string parameter

{

//method body

}

Step-by-step explanation:

In the above-given code, a method "processArray" is declared, that holds a variable x, which is as a string of array implies it is an array of string.

In the method declaration, we use method return type is void because a method doesn't return any value, and the "void" can't return any value.

User Jevaughn
by
6.7k points