public static void main(String[] args) {
// Create a usable instance of an input device
Scanner sc = new Scanner(System.in);
// Prompt user for input
System.out.println("Please enter you first name:");
// Capture first word and assign it to A Variable
String firstName;
firstName = sc.next();
//Construct the greeting
System.out.println("Hello, " + sc.next() + "!");
I am able to output the name on the screen but I have to type it in twice. I believe it is due to the sc.next statement but I am not for certain.