// // Review for Java // // Goal: read in the user's name and out // a greeting message import java.util.Scanner; public class Greeting { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Type your name: "); // prompt String name = input.nextLine(); // input System.out.println("Hello, " + name); } }