X6: helloName

Write a function in Java that implements the following logic: Given a string name, e.g. "Bob", return a greeting of the form "Hello Bob!".

Your Answer:

x
 
1
public String helloName(String name)
2
{
3
    
4
}
5

Feedback

Your feedback will appear here when you check your answer.