Question: Assume the following declarations already exist: Scanner stdin = new Scanner (System. in); String name; Write some code that uses the stdin object to read

Assume the following declarations already exist: Scanner stdin = new Scanner (System. in); String name; Write some code that uses the stdin object to read a line of text into name and then prints the message "Greetings, NAMEVALUE!!! "on a line by itself where NAMEVALUE is replaced by the value that was read into name. For example, if your code read in "Hassan" it would print out "Greetings, Hassan!!!" on a line by itself
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
