/*	The program asks the user to input their first and last name
	Then it prints out it's last name and first name with a greeting.
	It's a simple program using String
	
*
*/

import java.util.Scanner;	//Needed for the Scanner class

public class Name
{
	public static void main(String[] args)
	{
		String first, last;	// Declare first and last as a string
		
		Scanner key = new Scanner(System.in);	// Scanner object
		
		System.out.print("Please enter your first name: "); //Get the user's first name
		first = key.nextLine();
		
		System.out.print("\nPlease enter your last name: "); //Get the user's last name
		last = key.nextLine();
		
		//Outputs their last & first name with a greeting
		
		System.out.println("Hi "+last +" " + first + ", how are you doing today");
	}
}