Question: Create the method SayHello in java that takes an array of strings as a parameter. Iterate through the array and greet every element in it
Create the method SayHello in java that takes an array of strings as a parameter.
Iterate through the array and greet every element in it with "Hello" followed by a newline.
Test Case
In the first test case, names has the value Alice "Bob" Running your program should produce the following output:
Hello Alice
Hello Bob
Test Case
In the second test case, names has the value Running your program should produce the following output:
Hello
Hello
Hello
Test Case
In the third test case, names has the value Codio Running your program should produce the following output:
Hello Codio
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
