I am currently working on code that requires user response to system.out questions. In a previous assignment this worked perfectly fine, showing the question then allowing user input and continuing to the next question. In this assignment though, I am collecting a character input before asking basic user questions. Here is my code: ```
System.out.print("\nEnter your selection here: \n");
menuSelection = input.next().charAt(0);
System.out.println("\nWhat is your name?\n");
userName = input.nextLine();
System.out.println("What item will you be purchasing?\n");
itemName = input.nextLine();
System.out.println("What is the original price?\n");
originalPrice = input.nextDouble();
System.out.println("How many will you purchase?\n");
howMany = input.nextInt();
```
When I run the code the first line outputs correctly and prompts input, but after inputting the character it then displays both the userName and itemName questions at the same time. What could be causing this?