Write a program SecretMessage.java
that asks the user to enter their name.
The program should then print a personalized ‘hello’ message to that person.
If the person enters your name (“Richard” for example), it should print out
a two-line secret message intended just for that person. For example:
Don't tell anybody,
but I think you're the best!
Finally, the program should print “Goodbye” to the person, regardless of whether or not the secret message was displayed.
Sample interaction:
Please enter your name: Lola
Hello, Lola!
Goodbye.
Sample interaction:
Please enter your name: Richard
Hello, Richard!
Don't tell anybody,
but I think you're the best!
Goodbye.