Exercise: Hello User

Write a console program that asks for the user's name and then greets the user with Hello <userName>, where <userName> is a placeholder for the string the user has entered.

For example (user input in green):

What's your name?
Michael
Hello Michael

Hand in instructions

  1. Make sure your program runs correctly.
  2. Hand in your program by uploading Main.java to Moodle.