Earth Sciences homework help

Earth Sciences homework help. 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 =…

Earth Sciences homework help

Posted in Uncategorized