CJCoding With Joseph

Greet the User

Read one line of input (a name) with a Scanner, then print a greeting. If the input is Alice, print exactly:

Hello, Alice!

Use Scanner.nextLine() and concatenate the name into the greeting.

Expected Output:

Hello, Alice!
Topics:
Printing
๐Ÿ“ฅ Auto-Input:
Alice\n
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.