Answered You can hire a professional tutor to get the answer.

QUESTION

Write some code that reads a value into the variable name then prints the message "Greetings, NAME" on a line by itself, where NAME is replaced the...

Write some code that reads a value into the variablename then prints the message "Greetings, NAME" on a line by itself, where NAME is replaced the value that was read into name. For example, if your code read in "Rachel" it would print out "Greetings, Rachel" on a line by itself.

import java.util.Scanner;public class Name {public static void main(String args) {String name;Scanner input = new Scanner(System.in);System.out.print("Enter your name: ");name =...
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question