import java.util.Scanner; 

/** 
 * This class just asks the user to enter his/her name and then 
 * says hello.
 */
public class InteractiveHello
{
	/* This is the main method. The program starts here. */
	public static final void main(String[] args)
	{
		// ask the user to enter his/her name
		System.out.print("Please enter your name: ");

		// create a Scanner object to read from the keyboard
		Scanner scan = new Scanner(System.in);

		// read what the user types
		String name = scan.next();

		// now say hello
		System.out.println("Hello, " + name + "!");
	}
}

