CJCoding With Joseph
15free / daySign inCreate account

Build a Greeting

Create 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 — print one after the last line.

Hints2 available
Topics:
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.