Build a Greeting
easyQuestion 281Create a class named Greeter with a public static method Greet that takes a string name and returns a greeting in the form "Hello, NAME!" (a comma and space after Hello, then the name, then an exclamation mark). The method returns the string; it does not print it. For example, Greet("Ada") returns "Hello, Ada!".
Expected output
Hello, Ada!= newline. The output ends with a newline, so print one after the last line.
Hints2 available
Sign in to use hintsTopics
Methods
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (cw, cr, fori)
Your output
Run your code to see the output here...
Test cases
Run your code to see test case results.