Create a program that asks for a customer's name and their coffee order, then displays a friendly confirmation message. Fill in the blanks in the code to make it work correctly.
Reading user's input with Scanner
Brewing up a friendly byte
Report a typo
Fill in the gaps with the relevant elements
();
System.out.print("Enter your : ");
name ();
System.out.print("Enter your : ");
String order = scanner.nextLine();
System.out.println("Thank you, " + name + "!");
System.out.println("Your order: " + order); ___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.